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=d9a3e66574903db85a9e2f93fab95756b42e76d3;hb=5d91de89b70a4ba96cd4d37c4fcc991118faf685;hp=5e191cd450d7dfc477db2697a64d2f5868ede22e;hpb=1fdb1b4e7b1d2b0cabb6483238301b857a6392fa;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 5e191cd45..d9a3e6657 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 @@ -16,9 +16,23 @@ package org.argeo.slc.execution; +import java.io.Serializable; import java.util.Map; -public class ExecutionFlowDescriptor { +/** + * + * @author bsinou + * + * This class implements the archetype of a given process. + * + * 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 { + private static final long serialVersionUID = 7101944857038041216L; private String name; private String description; private String path; @@ -87,4 +101,10 @@ public class ExecutionFlowDescriptor { return name.hashCode(); } + @Override + public String toString() { + return (path != null && !path.trim().equals("") ? path + "/" : "") + + name; + } + }