public interface ActivityTermination
| Modifier and Type | Method and Description |
|---|---|
void |
activityFailed(SessionToken session,
EBPInstanceReference activity,
DataContainer dataContainer,
java.lang.String errorMessage,
java.lang.String state,
long errorCode)
Signals the failure of an activity, which means, setting the state of the
process step accordingly and starting appropriate measures, for instance,
rolling back or restarting.
|
void |
activityFinished(SessionToken session,
EBPInstanceReference activity,
DataContainer dataContainer)
Signals the termination of an activity, which means, setting the state of
the process step accordingly, storing the values of the output parameters -
encapsulated in the designated data container - and activating new process
steps if appropriate.
|
void |
activityReset(SessionToken session,
EBPInstanceReference activity)
Signals a reset of a running activity, which means, the current state
(including the written values) is completely dropped and resetting the
state of the node to
NS_ACTIVATED. |
void |
activityResetTo(SessionToken session,
EBPInstanceReference activity,
java.lang.String savepoint)
Signals a reset of a running activity to the designated savepoint.
|
void |
activitySuspended(SessionToken session,
EBPInstanceReference activity,
DataContainer dataContainer)
Signals a suspending of an activity, which means, setting the state of the
process step accordingly and storing the values of the output parameters -
encapsulated in the designated data container.
|
void |
activitySuspended(SessionToken session,
EBPInstanceReference activity,
DataContainer dataContainer,
java.lang.String savepoint)
Signals a suspending of an activity, which means, setting the state of the
process step accordingly and storing the values of the output parameters -
encapsulated in the designated data container.
|
void |
flushDataContainer(SessionToken session,
EBPInstanceReference activity,
DataContainer dataContainer)
Flushes the current state of the designated data container, that is, the values of the output
parameters and the application states and stores them internally with the last savepoint ID of
the designated data container.
|
void |
flushSavepoint(SessionToken session,
EBPInstanceReference activity,
DataContainer dataContainer,
java.lang.String savepoint)
Flushes the state of the designated savepoint in the designated data container, that is, the
values of the output parameters and the application states for the designated savepoint and
stores them internally.
|
void activityFinished(SessionToken session, EBPInstanceReference activity, DataContainer dataContainer) throws InvalidActivityStateException
NS_RUNNING). WorklistConstants.WorklistItemState.ENQUIRED.
session - The session which is used to check for access rights on this
method.activity - The unique ID of the activity to set to
NS_COMPLETED.dataContainer - The corresponding data container that contains the
values of the output parameters of the activity.InvalidActivityStateException - If the activity (process step) is not
running, an InvalidActivityStateException will be
raised.WrongExecutionManagerException - If the designated activity is not
managed by this execution manager, a
WrongExecutionManagerException will be raised.ProcessConstants.NodeStatevoid activitySuspended(SessionToken session, EBPInstanceReference activity, DataContainer dataContainer) throws InvalidActivityStateException
NS_RUNNING).session - The session which is used to check for access rights on this
method. This can also be used to allow only a dependent session to
resume the designated activity. The policy is determined by the
corresponding implementation.activity - The unique ID of the activity to set to
NS_SUSPENDED.dataContainer - The corresponding data container that contains the
values of the output parameters of the activity.InvalidActivityStateException - If the activity (process step) is not
running, an InvalidActivityStateException will be
raised.WrongExecutionManagerException - If the designated activity is not
managed by this execution manager, a
WrongExecutionManagerException will be raised.ProcessConstants.NodeStatevoid activitySuspended(SessionToken session, EBPInstanceReference activity, DataContainer dataContainer, java.lang.String savepoint) throws InvalidActivityStateException
NS_RUNNING).session - The session which is used to check for access rights on this
method. This can also be used to allow only a dependent session to
resume the designated activity. The policy is determined by the
corresponding implementation.activity - The unique ID of the activity to set to
NS_SUSPENDED.dataContainer - The corresponding data container that contains the
values of the output parameters of the activity.savepoint - The ID of the savepoint for the state defined by the
designated data container. If there is already a savepoint of this
name, it will be overwritten. This must not be the empty
string! If this is null, the implicit savepoint will
be used (and possibly overwritten).InvalidActivityStateException - If the activity (process step) is not
running, an InvalidActivityStateException will be
raised.WrongExecutionManagerException - If the designated activity is not
managed by this execution manager, a
WrongExecutionManagerException will be raised.ProcessConstants.NodeStatevoid activityReset(SessionToken session, EBPInstanceReference activity) throws InvalidActivityStateException
NS_ACTIVATED. This method is called by
the runtime manager. For tracking purpose the agent executing the activity
as well as the resetting agent is logged. NS_RUNNING).session - The session which is used to check for access rights on this
method and to retrieve the resetting agent and the corresponding
organisational position for logging purpose.activity - The reference identifying the activity to reset.InvalidActivityStateException - If the activity (process step) is not
running or suspended or failed, an
InvalidActivityStateException will be raised.WrongExecutionManagerException - If the designated activity is not
managed by this execution manager, a
WrongExecutionManagerException will be raised.ProcessConstants.NodeStatevoid activityResetTo(SessionToken session, EBPInstanceReference activity, java.lang.String savepoint) throws InvalidActivityStateException
NS_SUSPENDED. This method is called by the runtime manager. For
tracking purpose the agent executing the activity as well as the resetting agent is logged.
NS_RUNNING).session - The session which is used to check for access rights on this method and to
retrieve the resetting agent and the corresponding organisational position for logging
purpose.activity - The reference identifying the activity to reset.savepoint - The savepoint to which to reset the activity. If this is null the
last implicit savepoint will be used. If the savepoint does not exist, the activity
will be reset completely.InvalidActivityStateException - If the activity (process step) is not running or
suspended or failed, an InvalidActivityStateException will be raised.WrongExecutionManagerException - If the designated activity is not managed by this
execution manager, a WrongExecutionManagerException will be raised.ProcessConstants.NodeStatevoid activityFailed(SessionToken session, EBPInstanceReference activity, DataContainer dataContainer, java.lang.String errorMessage, java.lang.String state, long errorCode) throws InvalidActivityStateException
NS_RUNNING, NS_SUSPENDED or
NS_SUSPENDED_SUPPR).session - The session which is used to check for access rights on this
method.activity - The unique ID of the activity to set to
NS_COMPLETED.dataContainer - The corresponding data container that contains the
values of the output parameters of the activity.errorMessage - The error message to be interpreted by a user or by a
failure handling routine.state - Arbitrary state information specific to the component,
comparable to the vendor code in
SQLException.errorCode - The error code specifying the type of error.InvalidActivityStateException - If the activity (process step) has
the wrong iteration, an
InvalidActivityStateException will be raised.WrongExecutionManagerException - If the designated activity is not
managed by this execution manager, a
WrongExecutionManagerException will be raised.ProcessConstants.NodeStatevoid flushSavepoint(SessionToken session, EBPInstanceReference activity, DataContainer dataContainer, java.lang.String savepoint) throws InvalidActivityStateException
NS_RUNNING).session - The session which is used to check for access rights on this method. This can
also be used to allow only a dependent session to resume the designated activity. The
policy is determined by the corresponding implementation.activity - The unique ID of the activity of which to flush the data container for the
designated savepoint.dataContainer - The corresponding data container that contains the values of the output
parameters of the activity.savepoint - The savepoint which to flush. If this savepoint is not defined in the
designated data container, a new savepoint will be created for the current values of
the output parameters and application states. If this is null, the
complete data container will be
flushed.InvalidActivityStateException - If the activity (process step) is not running, an
InvalidActivityStateException will be raised.WrongExecutionManagerException - If the designated activity is not managed by this
execution manager, a WrongExecutionManagerException will be raised.ProcessConstants.NodeStatevoid flushDataContainer(SessionToken session, EBPInstanceReference activity, DataContainer dataContainer) throws InvalidActivityStateException
NS_RUNNING).session - The session which is used to check for access rights on this method. This can
also be used to allow only a dependent session to resume the designated activity. The
policy is determined by the corresponding implementation.activity - The unique ID of the activity of which to flush the data container for the
designated savepoint.dataContainer - The corresponding data container that contains the values of the output
parameters of the activity.InvalidActivityStateException - If the activity (process step) is not running, an
InvalidActivityStateException will be raised.WrongExecutionManagerException - If the designated activity is not managed by this
execution manager, a WrongExecutionManagerException will be raised.ProcessConstants.NodeState