public interface DecisionActivity extends Activity
A decision activity has only one special output parameter of type
INTEGER (getDecisionParameter()). The return value of the
parameter is the decision ID. This ID can be mapped in the process
model to branch IDs - e.g. of outgoing edges of an XOR split.
Since the decision IDs need to be mapped to branch IDs, and the
integrity of the mapping and the consistency to the actual branches
needs to be checked, all possible decision IDs need to be known
in advance. More precisely, all possible return values of
getDecisionParameter() are returned by getDecisionIDs().
Note: for the runtime manager, the decision activity will be
wrapped. The runtime manager handles the decision activity as a normal
activity, and may expect the decision parameter to be returned within
ExecutableBusinessProcess.getParameters(de.aristaflow.adept2.model.globals.ActivityConstants.AccessType).
| Modifier and Type | Method and Description |
|---|---|
long[] |
getDecisionID(long edgeCode)
Returns the decision ID for the given edge code.
|
long[] |
getDecisionIDs()
Returns all possible decision IDs, i.e. all possible return values
of the parameter.
|
java.lang.String |
getDecisionLabel(long decisionID)
Returns the label which is associated with the given decision ID.
|
ProcessModelParameter |
getDecisionParameter()
Returns the decision parameter.
|
DecisionStatement |
getDecisionStatement(long decisionID)
Returns the statement that is associated with the given decision ID.
|
java.util.Map<java.lang.Long,DecisionStatement> |
getDecisionStatements()
Gets all decision statements of this decision activity instance indexed by the corresponding
decision ID.
|
long |
getEdgeCode(long decisionID)
Returns the edge code for the given decision ID.
|
getConfiguration, getTestConfigurationgetExecutionControlProperties, getParameter, getParameters, getTypetoLocalisedStringgetParameterChangePolicy, supportsTestExecutiongetActivityName, getAttributeOrigins, getClassLoaderUsage, getClassPath, getConfigurationName, getDescription, getExecutableComponentName, getExecutionControlProperties, getGUIContextID, getIconID, getID, getImplementationClass, getOperationName, getParameter, getParameters, getSeparatedClassPaths, getSystemComponent, supportsViewOnlygetPluginData, getPluginDatas, getSupportedPluginsgetUserAttributes, getUserAttributeValue, removeUserAttributeValue, setUserAttributeValueProcessModelParameter getDecisionParameter()
ProcessConstants.AdeptDataType.INTEGER).
All possible values of the parameter are known and can
be retrieved via getDecisionIDs().
java.lang.String getDecisionLabel(long decisionID)
getDecisionStatements().decisionID - The decision ID.DecisionStatement getDecisionStatement(long decisionID)
decisionID - The decision IDlong[] getDecisionIDs()
java.util.Map<java.lang.Long,DecisionStatement> getDecisionStatements()
long[] getDecisionID(long edgeCode)
edgeCode - The edge code for which the decision ID is needed.long getEdgeCode(long decisionID)
decisionID - The decision ID for which the edge code is needed.