airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From samin...@apache.org
Subject svn commit: r1515010 - /airavata/trunk/modules/workflow-model/workflow-model-core/src/main/java/org/apache/airavata/workflow/model/wf/Workflow.java
Date Sat, 17 Aug 2013 16:20:27 GMT
Author: samindaw
Date: Sat Aug 17 16:20:27 2013
New Revision: 1515010

URL: http://svn.apache.org/r1515010
Log:
removing the use of wsdl to validate the input data to the workflow

Modified:
    airavata/trunk/modules/workflow-model/workflow-model-core/src/main/java/org/apache/airavata/workflow/model/wf/Workflow.java

Modified: airavata/trunk/modules/workflow-model/workflow-model-core/src/main/java/org/apache/airavata/workflow/model/wf/Workflow.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/workflow-model/workflow-model-core/src/main/java/org/apache/airavata/workflow/model/wf/Workflow.java?rev=1515010&r1=1515009&r2=1515010&view=diff
==============================================================================
--- airavata/trunk/modules/workflow-model/workflow-model-core/src/main/java/org/apache/airavata/workflow/model/wf/Workflow.java
(original)
+++ airavata/trunk/modules/workflow-model/workflow-model-core/src/main/java/org/apache/airavata/workflow/model/wf/Workflow.java
Sat Aug 17 16:20:27 2013
@@ -486,28 +486,13 @@ public class Workflow implements Cloneab
     }
     
 	public List<WorkflowInput> getWorkflowInputs() throws Exception{
-		List<WSComponentPort> inputs = getInputs();
 		List<InputNode> inputNodes = GraphUtil.getInputNodes(getGraph());
 		List<WorkflowInput> results=new ArrayList<WorkflowInput>();
 		for (InputNode port : inputNodes) {
-			Object value=null;
-			WSComponentPort wsComponentPort = getWSComponentPort(port.getName(), inputs);
-			if (wsComponentPort!=null){
-				value=wsComponentPort.getValue();
-			}
-			results.add(new WorkflowInput(port.getName(), port.getParameterType().getLocalPart(),
port.getDefaultValue(), value, !port.isVisibility()));
+			results.add(new WorkflowInput(port.getID(), port.getParameterType().getLocalPart(), port.getDefaultValue(),
port.getDefaultValue(), !port.isVisibility()));
 		}
 		return results;
 	}
-
-	private WSComponentPort getWSComponentPort(String name,List<WSComponentPort> ports){
-		for (WSComponentPort port : ports) {
-			if (port.getName().equals(name)){
-				return port;
-			}
-		}
-		return null;
-	}
 	
     /**
      * Returns the outputs of the workflow.



Mime
View raw message