X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=runtime%2Forg.argeo.slc.specs%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fexecution%2FExecutionFlowDescriptor.java;h=f4329309996bc9fd6ee855be9731415953bcf446;hb=58efbefd4194e7b3b9da463964bd791a759702f2;hp=d9a3e66574903db85a9e2f93fab95756b42e76d3;hpb=5d91de89b70a4ba96cd4d37c4fcc991118faf685;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/ExecutionFlowDescriptor.java b/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/ExecutionFlowDescriptor.java index d9a3e6657..f43293099 100644 --- a/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/ExecutionFlowDescriptor.java +++ b/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/ExecutionFlowDescriptor.java @@ -21,14 +21,27 @@ import java.util.Map; /** * - * @author bsinou + * Implements both archetype and implementation of a given process. + * + * At specification time, executionSpec represents the spec of the + * parameters accepted by the process, with, among others: type, default value + * and, optionally, possible values for each parameter. Thus ExecutionSpec might + * be a huge object. Note that when marshalling only a reference to a specific + * ExecutionSpec is stored in the XML to optimize performance and avoid + * redundancy between various ExecutionFlowDesciptor that might have the same + * ExecutionSpec. + * + * At runtime, we build a RealizedFlow which references an + * ExecutionFlowDescriptor. As it happens AFTER marshalling / unmarshalling + * process, the ExecutionSpec is null but we manage to retrieve the + * ExecutionSpec and store it in the RealizedFlow, whereas set values of the + * parameters are stored in the values map. * - * This class implements the archetype of a given process. + * Generally, values object are either a PrimitiveAccessor or a + * RefValue but can be other objects. + * + * @author bsinou * - * WARNING : for now both values and - * executionSpec which are rundundant are used. Should be - * improved in further version. Note also that a third redundant field, - * RealizedFlow.executionSpec is also to be cleaned. * */ public class ExecutionFlowDescriptor implements Serializable {