]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - server/org.argeo.slc.ria/src/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/Flow.js
Make parsing more robust, better error handling.
[gpl/argeo-slc.git] / server / org.argeo.slc.ria / src / argeo-ria-lib / slc / class / org / argeo / slc / ria / execution / Flow.js
index 017599ee6f2ce64999faf001ef5449a81458d9e4..449b1220fda460d109e6f3b4235a2b98471854a1 100644 (file)
@@ -36,7 +36,8 @@ qx.Class.define("org.argeo.slc.ria.execution.Flow", {
                 * The values to init the ExecutionSpec\r
                 */\r
                values : {\r
-                       check : "Node"\r
+                       check : "Node",\r
+                       nullable : true\r
                },\r
                /**\r
                 * Castor representation of the object \r
@@ -81,7 +82,9 @@ qx.Class.define("org.argeo.slc.ria.execution.Flow", {
                                executionSpecName : org.argeo.ria.util.Element.getSingleNodeText(xmlNode, this.self(arguments).XPATH_EXEC_SPEC_NAME)\r
                        });\r
                        var values = org.argeo.ria.util.Element.selectNodes(xmlNode, this.self(arguments).XPATH_VALUES);\r
-                       this.setValues(values[0]);\r
+                       if(values[0]){\r
+                               this.setValues(values[0]);\r
+                       }\r
                },\r
                /**\r
                 * Get a given value inside the values map\r