this.setModule(module);\r
this.setFlow(flow);\r
this.setOriginalSpec(flow.getExecutionSpec());\r
+ this.fetchInstanceValues();\r
+ },\r
+ \r
+ members : {\r
+ /**\r
+ * Fetch the Spec Values with the Flow Values to make the current instance value\r
+ */\r
+ fetchInstanceValues : function(){\r
+ var specValues = this.getOriginalSpec().getValues();\r
+ var flow = this.getFlow();\r
+ var instanceValues = {};\r
+ for(var key in specValues){\r
+ var flowValue = flow.getValue(\r
+ key, \r
+ specValues[key].getSpecType(), \r
+ specValues[key].getSpecSubType()\r
+ );\r
+ var instValue = specValues[key].clone();\r
+ if(flowValue){\r
+ instValue.setValue(flowValue);\r
+ }\r
+ instanceValues[key] = instValue;\r
+ }\r
+ this.setValues(instanceValues);\r
+ this.debug(instanceValues);\r
+ }\r
}\r
});
\ No newline at end of file