]> 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/Module.js
Last XML updates
[gpl/argeo-slc.git] / org.argeo.slc.webapp / src / main / webapp / argeo-ria-lib / slc / class / org / argeo / slc / ria / execution / Module.js
index 8e69c92b2b3b574294c78a2857bcc05bf893690f..5157f83443a7c392f8452053771b9c8fc698f7e4 100644 (file)
@@ -45,16 +45,18 @@ qx.Class.define("org.argeo.slc.ria.execution.Module", {
        statics : {\r
                XPATH_NAME : "slc:execution-module-descriptor/slc:name",\r
                XPATH_VERSION : "slc:execution-module-descriptor/slc:version",\r
-               XPATH_EXECUTION_FLOWS : "slc:execution-module-descriptor/slc:executionFlows/slc:execution-flow-descriptor",\r
-               XPATH_EXECUTION_SPECS : "slc:execution-module-descriptor/slc:executionSpecs/slc:simple-execution-spec"\r
+               XPATH_EXECUTION_FLOWS : "slc:execution-module-descriptor/slc:execution-flows/slc:execution-flow-descriptor",\r
+               XPATH_EXECUTION_SPECS : "slc:execution-module-descriptor/slc:execution-specs/slc:default-execution-spec"\r
        },\r
        \r
-       construct : function(){},\r
+       construct : function(){\r
+               this.base(arguments);\r
+       },\r
        \r
        members : {\r
                /**\r
                 * Add an execution flow to this module\r
-                * @param executionFlow {org.argeo.slc.ria.execution.Flow}\r
+                * @param executionFlow {org.argeo.slc.ria.execution.Flow} An instance of execution.Flow\r
                 */\r
                addExecutionFlow : function(executionFlow){\r
                        var spec = this.getExecutionSpecByName(executionFlow.getExecutionSpecName());\r
@@ -68,16 +70,25 @@ qx.Class.define("org.argeo.slc.ria.execution.Module", {
                \r
                /**\r
                 * Add an execution Spec to this module\r
-                * @param executionSpec {org.argeo.slc.ria.execution.Spec}\r
+                * @param executionSpec {org.argeo.slc.ria.execution.Spec} An instance of ExecutionSpec\r
                 */\r
                addExecutionSpec : function(executionSpec){\r
                        this.getExecutionSpecs()[executionSpec.getName()] = executionSpec;\r
                },\r
-               \r
+               /**\r
+                * Find an execution spec by its name\r
+                * @param name {String} Name of the spec\r
+                * @return {org.argeo.slc.ria.execution.Spec} The spec\r
+                */\r
                getExecutionSpecByName : function(name){\r
                        return this.getExecutionSpecs()[name];\r
                },\r
                \r
+               /**\r
+                * Find an execution flow by its name\r
+                * @param name {String} name of the flow\r
+                * @return {org.argeo.slc.ria.execution.Flow} The flow\r
+                */\r
                getExecutionFlowByName : function(name){\r
                        return this.getExecutionFlows()[name];\r
                },\r