]> git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/Flow.js
Rename classes
[gpl/argeo-slc.git] / org.argeo.slc.webapp / src / main / webapp / argeo-ria-lib / slc / class / org / argeo / slc / ria / execution / Flow.js
1 /**
2 * Wrapper for ExecutionFlow server object
3 */
4 qx.Class.define("org.argeo.slc.ria.execution.Flow", {
5
6 extend : qx.core.Object,
7
8 properties : {
9 /**
10 * Name of this Execution Flow
11 */
12 name : {
13 check : "String",
14 init : ""
15 },
16 /**
17 * Name of the associated spec, to be found in the module
18 */
19 executionSpecName : {
20 check : "String"
21 },
22 /**
23 * Reference the actual ExecutionSpec object
24 */
25 executionSpec : {
26 check : "org.argeo.slc.ria.execution.Spec"
27 },
28 /**
29 * Castor representation of the object
30 */
31 xmlNode : {
32 apply : "_applyXmlNode"
33 }
34 },
35
36 statics : {
37 XPATH_NAME : "@name",
38 XPATH_EXEC_SPEC_NAME : "@executionSpec",
39 XPATH_VALUES : "slc:values"
40 },
41
42 construct : function(){},
43
44 members : {
45 /**
46 * Init the object from an XML representation
47 * @param xmlNode {Node} Castor representation of this object
48 */
49 _applyXmlNode : function(xmlNode){
50 this.set({
51 name : org.argeo.ria.util.Element.getSingleNodeText(xmlNode, this.self(arguments).XPATH_NAME),
52 executionSpecName : org.argeo.ria.util.Element.getSingleNodeText(xmlNode, this.self(arguments).XPATH_EXEC_SPEC_NAME)
53 });
54 }
55 }
56
57 });