X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=server%2Forg.argeo.slc.ria%2Fsrc%2Fargeo-ria-lib%2Fslc%2Fclass%2Forg%2Fargeo%2Fslc%2Fria%2Fexecution%2FFlow.js;h=0167d9b4eed8fee6db31d56d476f5c2067605619;hb=6e162ed05016679a19bf4da38b835d15684cb232;hp=449b1220fda460d109e6f3b4235a2b98471854a1;hpb=5ae14befdfa100eb6fd6cf17c8b39c1efb8ed34d;p=gpl%2Fargeo-slc.git diff --git a/server/org.argeo.slc.ria/src/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/Flow.js b/server/org.argeo.slc.ria/src/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/Flow.js index 449b1220f..0167d9b4e 100644 --- a/server/org.argeo.slc.ria/src/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/Flow.js +++ b/server/org.argeo.slc.ria/src/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/Flow.js @@ -13,6 +13,10 @@ qx.Class.define("org.argeo.slc.ria.execution.Flow", { check : "String", init : "" }, + description : { + check : "String", + init : "" + }, /** * An optional path describing this flow */ @@ -52,6 +56,10 @@ qx.Class.define("org.argeo.slc.ria.execution.Flow", { * Xpath to the name */ XPATH_NAME : "@name", + /** + * Path to the description + */ + XPATH_DESCRIPTION : "slc:description", /** * XPath to the ExecutionSpec name */ @@ -79,6 +87,7 @@ qx.Class.define("org.argeo.slc.ria.execution.Flow", { this.set({ name : org.argeo.ria.util.Element.getSingleNodeText(xmlNode, this.self(arguments).XPATH_NAME), path : org.argeo.ria.util.Element.getSingleNodeText(xmlNode, this.self(arguments).XPATH_PATH), + description : org.argeo.ria.util.Element.getSingleNodeText(xmlNode, this.self(arguments).XPATH_DESCRIPTION) || "", executionSpecName : org.argeo.ria.util.Element.getSingleNodeText(xmlNode, this.self(arguments).XPATH_EXEC_SPEC_NAME) }); var values = org.argeo.ria.util.Element.selectNodes(xmlNode, this.self(arguments).XPATH_VALUES); @@ -98,7 +107,7 @@ qx.Class.define("org.argeo.slc.ria.execution.Flow", { if(specType == "primitive"){ xpath = 'slc:value[@key="'+key+'"]/slc:primitive-value[@type="'+specSubType+'"]'; }else if(specType == "ref"){ - xpath = 'slc:value[@key="'+key+'"]/slc:ref-value/slc:label'; + xpath = 'slc:value[@key="'+key+'"]/slc:ref-value/@ref'; } return org.argeo.ria.util.Element.getSingleNodeText(this.getValues(), xpath); }