incubator-airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From samin...@apache.org
Subject svn commit: r1302400 - /incubator/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/airavata/AiravataClient.java
Date Mon, 19 Mar 2012 12:47:44 GMT
Author: samindaw
Date: Mon Mar 19 12:47:44 2012
New Revision: 1302400

URL: http://svn.apache.org/viewvc?rev=1302400&view=rev
Log:
set wsdl b4 retrieving workflow inputs

Modified:
    incubator/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/airavata/AiravataClient.java

Modified: incubator/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/airavata/AiravataClient.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/airavata/AiravataClient.java?rev=1302400&r1=1302399&r2=1302400&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/airavata/AiravataClient.java
(original)
+++ incubator/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/airavata/AiravataClient.java
Mon Mar 19 12:47:44 2012
@@ -58,6 +58,7 @@ import org.apache.airavata.xbaya.graph.s
 import org.apache.airavata.xbaya.interpretor.NameValue;
 import org.apache.airavata.xbaya.interpretor.WorkflowInterpretorStub;
 import org.apache.airavata.xbaya.wf.Workflow;
+import org.apache.airavata.xbaya.workflow.WorkflowClient;
 import org.apache.axis2.AxisFault;
 
 import xsul5.MLogger;
@@ -541,9 +542,13 @@ public class AiravataClient {
 	public Property getWorkflowAsString(String workflowTemplateId)
 			throws RegistryException, PathNotFoundException,
 			RepositoryException {
-		Node workflowNode = getRegistry().getWorkflow(new QName(workflowTemplateId), getClientConfiguration().getJcrUsername());
-		Property workflowAsString = workflowNode.getProperty("workflow");
-		return workflowAsString;
+		Map<QName, Node> workflows = getRegistry().getWorkflows(getClientConfiguration().getJcrUsername());
+		for (QName qname : workflows.keySet()) {
+			if (qname.getLocalPart().equals(workflowTemplateId)){
+				return workflows.get(qname).getProperty("workflow");
+			}
+		}
+		return null;
 	}
 	
 
@@ -553,6 +558,7 @@ public class AiravataClient {
 			ComponentException, ValueFormatException {
 		Property workflowAsString = getWorkflowAsString(workflowTemplateId);
 		Workflow workflow = new Workflow(workflowAsString.getString());
+		WorkflowClient.createScript(workflow);
 		List<WSComponentPort> inputs = workflow.getInputs();
 		return inputs;
 	}



Mime
View raw message