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=3511ac5a975d2d3c809250851db833546bdd835a;hb=e3ae72208feba2b542520878574d49ac16917573;hp=5eae2b3b1f2709e56d13dcd5c359180b70ff225c;hpb=57f3f674573109ece71b4424e92a71acc12dff92;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 5eae2b3b1..3511ac5a9 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,20 +5,46 @@ 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); this.setFlow(flow); this.setOriginalSpec(flow.getExecutionSpec()); + this.setName(flow.getExecutionSpec().getName()); this.fetchInstanceValues(); }, 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; + }, + /** * Fetch the Spec Values with the Flow Values to make the current instance value */ @@ -39,7 +65,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