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