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=859114a86e3d1073b7b7aba89cee4224b8e897bf;hp=b3e30349636dff62386a2a21e741ee7917c90668;hpb=51d1c842e4e92cc65708b8bb88152d7344d43d04;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 b3e303496..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,8 +45,8 @@ 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(){ @@ -56,7 +56,7 @@ qx.Class.define("org.argeo.slc.ria.execution.Module", { 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()); @@ -70,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]; },