airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lah...@apache.org
Subject svn commit: r1237094 - /incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpreter.java
Date Sat, 28 Jan 2012 16:47:25 GMT
Author: lahiru
Date: Sat Jan 28 16:47:25 2012
New Revision: 1237094

URL: http://svn.apache.org/viewvc?rev=1237094&view=rev
Log:
minor fix in saving workflow output data.

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

Modified: incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpreter.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpreter.java?rev=1237094&r1=1237093&r2=1237094&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpreter.java
(original)
+++ incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpreter.java
Sat Jan 28 16:47:25 2012
@@ -571,7 +571,12 @@ public class WorkflowInterpreter {
 
                      if(actOnProvenance){
                         try {
-                            this.configuration.getJcrComponentRegistry().getRegistry().saveWorkflowExecutionOutput(this.topic,
node.getName(), val.toString());
+                            if (val instanceof String) {
+                                this.configuration.getJcrComponentRegistry().getRegistry().saveWorkflowExecutionOutput(this.topic,
node.getName(), val.toString());
+                            } else if (val instanceof org.xmlpull.v1.builder.XmlElement)
{
+                                this.configuration.getJcrComponentRegistry().getRegistry().saveWorkflowExecutionOutput(this.topic,
+                                        node.getName(), XMLUtil.xmlElementToString((org.xmlpull.v1.builder.XmlElement)
val));
+                            }
                         } catch (RegistryException e) {
                             e.printStackTrace();  //To change body of catch statement use
File | Settings | File Templates.
                         }
@@ -619,7 +624,14 @@ public class WorkflowInterpreter {
 				if (node.getGUI().getBodyColor() != NodeState.FINISHED.color) {
                     if(actOnProvenance){
                         try {
-                            this.configuration.getJcrComponentRegistry().getRegistry().saveWorkflowExecutionOutput(this.topic,
node.getName(), val.toString());
+                            if(val instanceof String){
+                                this.configuration.getJcrComponentRegistry().getRegistry().saveWorkflowExecutionOutput(this.topic,
+                                        node.getName(), val.toString());
+                            } else if (val instanceof org.xmlpull.v1.builder.XmlElement)
{
+                                this.configuration.getJcrComponentRegistry().getRegistry().saveWorkflowExecutionOutput(this.topic,
+                                        node.getName(), XMLUtil.xmlElementToString((org.xmlpull.v1.builder.XmlElement)
val));
+                            }
+
                         } catch (RegistryException e) {
                             e.printStackTrace();  //To change body of catch statement use
File | Settings | File Templates.
                         }



Mime
View raw message