]> 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
API Documentation
[gpl/argeo-slc.git] / org.argeo.slc.webapp / src / main / webapp / argeo-ria-lib / slc / class / org / argeo / slc / ria / execution / BatchEntrySpec.js
index 5eae2b3b1f2709e56d13dcd5c359180b70ff225c..3511ac5a975d2d3c809250851db833546bdd835a 100644 (file)
@@ -5,20 +5,46 @@ qx.Class.define("org.argeo.slc.ria.execution.BatchEntrySpec", {
        extend : org.argeo.slc.ria.execution.Spec,\r
        \r
        properties : {\r
+               /**\r
+                * Reference module\r
+                */\r
                module :{},\r
+               /**\r
+                * Reference flow\r
+                */\r
                flow : {},\r
+               /**\r
+                * Original Spec (values shall stay untouched).\r
+                */\r
                originalSpec : {}               \r
        },\r
        \r
+       /**\r
+        * Instance of BatchEntrySpec\r
+        * @param module {org.argeo.slc.ria.execution.Module} Reference module\r
+        * @param flow {org.argeo.slc.ria.execution.Flow} Reference flow\r
+        */\r
        construct : function(module, flow){\r
                this.base(arguments);\r
                this.setModule(module);\r
                this.setFlow(flow);\r
                this.setOriginalSpec(flow.getExecutionSpec());\r
+               this.setName(flow.getExecutionSpec().getName());\r
                this.fetchInstanceValues();\r
        },\r
        \r
        members :  {\r
+               /**\r
+                * Create a label to display in the batch list.\r
+                * @return {String} The label\r
+                */\r
+               getLabel : function(){\r
+                       var label = this.getModule().getName();\r
+                       label += "/" + this.getModule().getVersion();\r
+                       label += "/" + this.getFlow().getName();\r
+                       return label;\r
+               },\r
+                               \r
                /**\r
                 * Fetch the Spec Values with the Flow Values to make the current instance value\r
                 */\r
@@ -39,7 +65,7 @@ qx.Class.define("org.argeo.slc.ria.execution.BatchEntrySpec", {
                                instanceValues[key] = instValue;\r
                        }\r
                        this.setValues(instanceValues);\r
-                       this.debug(instanceValues);\r
+                       //this.debug(instanceValues);\r
                }\r
        }\r
 });
\ No newline at end of file