X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.api.slc%2Fsrc%2Forg%2Fargeo%2Fapi%2Fslc%2Fexecution%2FExecutionSpec.java;fp=org.argeo.api.slc%2Fsrc%2Forg%2Fargeo%2Fapi%2Fslc%2Fexecution%2FExecutionSpec.java;h=079c63b2c01563c8508eaa67dfb38a568e1760f3;hb=09c9e5093fe1353aaac344ac8a8caf2e1dcc0778;hp=0000000000000000000000000000000000000000;hpb=8ff996a3380166be2ae9cf0ef0fa22c58e11746a;p=gpl%2Fargeo-slc.git diff --git a/org.argeo.api.slc/src/org/argeo/api/slc/execution/ExecutionSpec.java b/org.argeo.api.slc/src/org/argeo/api/slc/execution/ExecutionSpec.java new file mode 100644 index 000000000..079c63b2c --- /dev/null +++ b/org.argeo.api.slc/src/org/argeo/api/slc/execution/ExecutionSpec.java @@ -0,0 +1,29 @@ +package org.argeo.api.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(); + +}