]>
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/BatchEntrySpec.js
2 * Data model for an entry of the Batch list : original Spec, flow and module, and currently computed value.
4 qx
.Class
.define("org.argeo.slc.ria.execution.BatchEntrySpec", {
5 extend
: org
.argeo
.slc
.ria
.execution
.Spec
,
13 construct : function(module
, flow
){
15 this.setModule(module
);
17 this.setOriginalSpec(flow
.getExecutionSpec());
18 this.setName(flow
.getExecutionSpec().getName());
19 this.fetchInstanceValues();
24 getLabel : function(){
25 var label
= this.getModule().getName();
26 label
+= "/" + this.getModule().getVersion();
27 label
+= "/" + this.getFlow().getName();
32 return this.getLabel() + "\n";
36 * Fetch the Spec Values with the Flow Values to make the current instance value
38 fetchInstanceValues : function(){
39 var specValues
= this.getOriginalSpec().getValues();
40 var flow
= this.getFlow();
41 var instanceValues
= {};
42 for(var key
in specValues
){
43 var flowValue
= flow
.getValue(
45 specValues
[key
].getSpecType(),
46 specValues
[key
].getSpecSubType()
48 var instValue
= specValues
[key
].clone();
50 instValue
.setValue(flowValue
);
52 instanceValues
[key
] = instValue
;
54 this.setValues(instanceValues
);
55 this.debug(instanceValues
);