airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lah...@apache.org
Subject svn commit: r1237494 - /incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/util/InterpreterUtil.java
Date Sun, 29 Jan 2012 22:13:32 GMT
Author: lahiru
Date: Sun Jan 29 22:13:32 2012
New Revision: 1237494

URL: http://svn.apache.org/viewvc?rev=1237494&view=rev
Log:
fixing CCE.

Modified:
    incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/util/InterpreterUtil.java

Modified: incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/util/InterpreterUtil.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/util/InterpreterUtil.java?rev=1237494&r1=1237493&r2=1237494&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/util/InterpreterUtil.java
(original)
+++ incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/util/InterpreterUtil.java
Sun Jan 29 22:13:32 2012
@@ -163,7 +163,13 @@ public class InterpreterUtil {
 		} else if (fromNode instanceof EndForEachNode) {
 			outputVal = "";
 			Invoker workflowInvoker = invokerMap.get(fromNode);
-			String outputName = ((SystemDataPort) inputPort).getWSComponentPort().getName();
+			String outputName = "";
+            if (inputPort instanceof SystemDataPort) {
+                outputName = ((SystemDataPort) inputPort).getWSComponentPort().getName();
+
+            } else if (inputPort instanceof WSPort) {
+                outputName = ((WSPort) inputPort).getComponentPort().getName();
+            }
 			XmlElement msgElmt = XmlConstants.BUILDER
 					.parseFragmentFromString("<temp>"
 							+ workflowInvoker.getOutput(outputName) + "</temp>");



Mime
View raw message