X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.slc.api%2Fsrc%2Forg%2Fargeo%2Fslc%2Fexecution%2FExecutionSpec.java;fp=org.argeo.slc.api%2Fsrc%2Forg%2Fargeo%2Fslc%2Fexecution%2FExecutionSpec.java;h=0037b6d67a9309108a6b2b5d2a2e061b5b974690;hb=6fc94d69efe089414ac9e63bde3efab1cbf7b7ca;hp=0000000000000000000000000000000000000000;hpb=b36c62642bd0db11b3133b369cc026fd4b7a1ec6;p=gpl%2Fargeo-slc.git diff --git a/org.argeo.slc.api/src/org/argeo/slc/execution/ExecutionSpec.java b/org.argeo.slc.api/src/org/argeo/slc/execution/ExecutionSpec.java new file mode 100644 index 000000000..0037b6d67 --- /dev/null +++ b/org.argeo.slc.api/src/org/argeo/slc/execution/ExecutionSpec.java @@ -0,0 +1,29 @@ +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 { + /** + * 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(); + +}