public interface ActivityStateNotification
SynchronousActivityStarting.startActivitySynchronously(de.aristaflow.adept2.base.sessionmanagement.SessionToken, EBPInstanceReference, de.aristaflow.adept2.model.globals.ProcessConstants.ExecutionMode, URI[])
or resumed
SynchronousActivityStarting.resumeActivitySynchronously(de.aristaflow.adept2.base.sessionmanagement.SessionToken, EBPInstanceReference, URI[])). RuntimeManager. If the activity has been resumed without
registering a new listener by using
SynchronousActivityStarting.resumeActivitySynchronously(de.aristaflow.adept2.base.sessionmanagement.SessionToken, EBPInstanceReference),
the registered listener will retrieve further notifications.InstanceControl| Modifier and Type | Method and Description |
|---|---|
void |
activityClosed(EBPInstanceReference activity,
java.lang.String sessionID)
Notifies that the designated activity in the designated execution session
has been closed.
|
void |
activityFailed(EBPInstanceReference activity,
java.lang.String sessionID,
java.lang.String errorMessage,
java.lang.String state,
long errorCode)
Notifies that the designated activity in the designated execution session
has failed with the designated additional failure information.
|
void |
activityReset(EBPInstanceReference activity,
java.lang.String sessionID)
Notifies that the designated activity in the designated execution session
has been reset.
|
void |
activityResumed(EBPInstanceReference activity,
java.lang.String sessionID,
java.net.URI[] newListener)
Notifies that the designated activity has been resumed.
|
void |
activitySignalled(EBPInstanceReference activity,
java.lang.String sessionID,
int signal)
Notifies that the designated activity in the designated execution session
has terminated with the designated signal.
|
void |
activitySuspended(EBPInstanceReference activity,
java.lang.String sessionID)
Notifies that the designated activity in the designated execution session
has been suspended normally.
|
void |
activitySuspended(EBPInstanceReference activity,
java.lang.String sessionID,
long timeout)
Notifies that the designated activity in the designated execution session
has been suspended and needs to be resumed after the designated timeout.
|
void activityClosed(EBPInstanceReference activity, java.lang.String sessionID)
activity - The activity that has been closed.sessionID - The ID of the execution session of the closed activity.void activitySuspended(EBPInstanceReference activity, java.lang.String sessionID)
activity - The activity that has been suspended normally.sessionID - The ID of the execution session of the suspended activity.void activitySuspended(EBPInstanceReference activity, java.lang.String sessionID, long timeout)
ResumingRuntimeManager and
thus there will be a
resume
and further notifications afterwards.activity - The activity that has been suspended normally.sessionID - The ID of the execution session of the suspended activity.timeout - The time period (in milliseconds) when the suspended
application wants to be resumed automatically.void activityResumed(EBPInstanceReference activity, java.lang.String sessionID, java.net.URI[] newListener)
activity - The activity that has been suspended normally.sessionID - The ID of the new execution session of the resumed
activity.newListener - The URIs of the listener that has been registered when
resuming or null in case no listener has been
registered when resuming. If a new listener has been registered,
this listener will not be notified any more.SynchronousActivityStarting.resumeActivitySynchronously(de.aristaflow.adept2.base.sessionmanagement.SessionToken,
EBPInstanceReference)void activityReset(EBPInstanceReference activity, java.lang.String sessionID)
activity - The activity that has been reset.sessionID - The ID of the execution session of the reset activity.void activitySignalled(EBPInstanceReference activity, java.lang.String sessionID, int signal)
activity - The activity that has been terminated.sessionID - The ID of the execution session of the signalled activity.signal - The signal that led to the termination of the activity.void activityFailed(EBPInstanceReference activity, java.lang.String sessionID, java.lang.String errorMessage, java.lang.String state, long errorCode)
activity - The activity that has failed.sessionID - The ID of the execution session of the failed activity.errorMessage - The error message to be interpreted by a user or by a
failure handling routine.state - Arbitrary state information specific to the instance,
comparable to the vendor code in
SQLException.errorCode - The error code specifying the type of error.