]>
git.argeo.org Git - gpl/argeo-slc.git/blob - BatchEntrySpec.js
dcf22c82db5f16c61849649a7552b742ce3c18ca
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();
33 return this.getLabel() + "\n";
38 * Fetch the Spec Values with the Flow Values to make the current instance value
40 fetchInstanceValues : function(){
41 var specValues
= this.getOriginalSpec().getValues();
42 var flow
= this.getFlow();
43 var instanceValues
= {};
44 for(var key
in specValues
){
45 var flowValue
= flow
.getValue(
47 specValues
[key
].getSpecType(),
48 specValues
[key
].getSpecSubType()
50 var instValue
= specValues
[key
].clone();
52 instValue
.setValue(flowValue
);
54 instanceValues
[key
] = instValue
;
56 this.setValues(instanceValues
);
57 this.debug(instanceValues
);