X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=runtime%2Forg.argeo.slc.specs%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fexecution%2FExecutionSpec.java;h=e437740eb43150e6cf0eb01d30a9544383dddac2;hb=ac38932aab09592c1ec0af26c26899536dff284f;hp=ab4de4fd35c094620e77d611e0e99ed8696699bc;hpb=1fdb1b4e7b1d2b0cabb6483238301b857a6392fa;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/ExecutionSpec.java b/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/ExecutionSpec.java index ab4de4fd3..e437740eb 100644 --- a/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/ExecutionSpec.java +++ b/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/ExecutionSpec.java @@ -18,10 +18,28 @@ package org.argeo.slc.execution; import java.util.Map; +/** + * The class implementing this interface defines the map of attributes that are + * necessary for the corresponding ExecutionFlow. + */ public interface ExecutionSpec { - public Map getAttributes(); + /** + * The name for an internal spec (for backward compatibility where a + * non-null name is expected) + */ + public final static String INTERNAL_NAME = "__SLC_EXECUTION_SPEC_INTERNAL"; + /** + * The name identifying the execution spec within its application context. + * Can be null. An execution spec can be referenced only if its name is not + * null or different from {@link #INTERNAL_NAME} + */ public String getName(); - + + /** An optional description. Can be null. */ public String getDescription(); + + /** The attributes managed by this execution spec */ + public Map getAttributes(); + }