]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/BatchEntrySpec.js
Change the generated XML for the execution message
[gpl/argeo-slc.git] / org.argeo.slc.webapp / src / main / webapp / argeo-ria-lib / slc / class / org / argeo / slc / ria / execution / BatchEntrySpec.js
index 3511ac5a975d2d3c809250851db833546bdd835a..1102f44f2f05594869c51854a76e848f9d5fe440 100644 (file)
@@ -45,6 +45,22 @@ qx.Class.define("org.argeo.slc.ria.execution.BatchEntrySpec", {
                        return label;\r
                },\r
                                \r
+               toXml : function(){                     \r
+                       var valuesXml = '';\r
+                       var values = this.getValues();\r
+                       for(var key in values){\r
+                               valuesXml += values[key].toValueXml();\r
+                       }\r
+                       var execFlowDescXML = '<slc:execution-flow-descriptor name="'+this.getFlow().getName()+'" executionSpec="'+this.getName()+'"><slc:values>'+valuesXml+'</slc:values></slc:execution-flow-descriptor>';\r
+                       \r
+                       var execSpecDescXML = this.getOriginalSpec().toXml();\r
+                       \r
+                       var moduleData = '<slc:moduleName>'+this.getModule().getName()+'</slc:moduleName><slc:moduleVersion>'+this.getModule().getVersion()+'</slc:moduleVersion>';\r
+                       \r
+                       return '<slc:execution-object>'+moduleData + execFlowDescXML + execSpecDescXML +'</slc:execution-object>';\r
+                       \r
+               },\r
+               \r
                /**\r
                 * Fetch the Spec Values with the Flow Values to make the current instance value\r
                 */\r