X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.slc.webapp%2Fsrc%2Fmain%2Fwebapp%2Fargeo-ria-lib%2Fslc%2Fclass%2Forg%2Fargeo%2Fslc%2Fria%2Fexecution%2FBatchEntrySpec.js;h=6269b49c064d5ac1411ec8071e8b7ef9dd79288d;hb=43a20cbd46654d84ab1610ddb1ac6bbb058fe0c3;hp=2662984e05b3b20ae74bd3b52f8667244c375439;hpb=6ae24373b4153f19984831a5f456c18f763bf279;p=gpl%2Fargeo-slc.git diff --git a/org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/BatchEntrySpec.js b/org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/BatchEntrySpec.js index 2662984e0..6269b49c0 100644 --- a/org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/BatchEntrySpec.js +++ b/org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/BatchEntrySpec.js @@ -5,11 +5,25 @@ qx.Class.define("org.argeo.slc.ria.execution.BatchEntrySpec", { extend : org.argeo.slc.ria.execution.Spec, properties : { + /** + * Reference module + */ module :{}, + /** + * Reference flow + */ flow : {}, + /** + * Original Spec (values shall stay untouched). + */ originalSpec : {} }, + /** + * Instance of BatchEntrySpec + * @param module {org.argeo.slc.ria.execution.Module} Reference module + * @param flow {org.argeo.slc.ria.execution.Flow} Reference flow + */ construct : function(module, flow){ this.base(arguments); this.setModule(module); @@ -20,16 +34,31 @@ qx.Class.define("org.argeo.slc.ria.execution.BatchEntrySpec", { }, members : { - + /** + * Create a label to display in the batch list. + * @return {String} The label + */ getLabel : function(){ var label = this.getModule().getName(); label += "/" + this.getModule().getVersion(); label += "/" + this.getFlow().getName(); return label; }, - - toXml : function(){ - return this.getLabel() + "\n"; + + toXml : function(){ + var valuesXml = ''; + var values = this.getValues(); + for(var key in values){ + valuesXml += values[key].toValueXml(); + } + var execFlowDescXML = ''+valuesXml+''; + + var execSpecDescXML = this.getOriginalSpec().toXml(); + + var moduleData = ''+this.getModule().getName()+''+this.getModule().getVersion()+''; + + return ''+moduleData + execFlowDescXML + execSpecDescXML +''; + }, /** @@ -52,7 +81,7 @@ qx.Class.define("org.argeo.slc.ria.execution.BatchEntrySpec", { instanceValues[key] = instValue; } this.setValues(instanceValues); - this.debug(instanceValues); + //this.debug(instanceValues); } } }); \ No newline at end of file