public interface InstanceStateNotification
InstanceControl.createAndStartInstance(de.aristaflow.adept2.base.sessionmanagement.SessionToken, UUID, URI[]),
InstanceControl.createAndStartInstance(de.aristaflow.adept2.base.sessionmanagement.SessionToken, UUID, de.aristaflow.adept2.model.execution.ExecutionContext, URI[], URI[])).
InstanceControl| Modifier and Type | Method and Description |
|---|---|
void |
autoStartPending(EBPInstanceReference activity,
long terminationTime,
QualifiedAgent agent,
java.net.URI[] runtimeManager,
boolean rtmResolved)
Notifies that the designated activity may be autostarted.
|
void |
instanceFailed(java.util.UUID instanceID,
DataContainer dataContainer,
java.lang.String errorMessage,
java.lang.String state,
long errorCode)
Notifies that the designated top-level instance has failed and provides the
necessary failure information.
|
void |
instanceFinished(java.util.UUID instanceID,
DataContainer dataContainer)
Notifies that the designated top-level instance has finished normally and
provides the output parameters of the instance.
|
void |
instanceResumed(java.util.UUID instanceID)
Notifies that the designated top-level instance has been resumed.
|
void |
instanceSuspended(java.util.UUID instanceID)
Notifies that the designated top-level instance has been suspended.
|
void instanceFinished(java.util.UUID instanceID,
DataContainer dataContainer)
instanceID - The ID of the top-level instance that has finished
normally.dataContainer - The corresponding data container that contains the
values of the output parameters of the top-level instance or null
in case the instance does not have a data container. InstanceDataContainer in its execution
context when
started,
this data container will also be an
InstanceDataContainer.void instanceSuspended(java.util.UUID instanceID)
instanceID - The ID of the top-level instance that has been suspended.void instanceResumed(java.util.UUID instanceID)
instanceID - The ID of the top-level instance that has been resumed.void instanceFailed(java.util.UUID instanceID,
DataContainer dataContainer,
java.lang.String errorMessage,
java.lang.String state,
long errorCode)
instanceID - The ID of the top-level instance that failed or was
aborted.dataContainer - The corresponding data container that contains the
values of the output parameters of the top-level instance which
have been produced until the failure occurred or null in case the
instance does not have a data container. Please note that many
output parameters may be Null due to the failure. InstanceDataContainer in its execution
context when
started,
this data container will also be an
InstanceDataContainer.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.void autoStartPending(EBPInstanceReference activity, long terminationTime, QualifiedAgent agent, java.net.URI[] runtimeManager, boolean rtmResolved)
System.currentTimeMillis()). The auto start should take
place on the designated runtime manager.activity - The activity which may be autostarted.terminationTime - The termination time of the preceeding node of the designated activity
(as System.currentTimeMillis()). This allows to decide whether
autostarting is still feasible, e. g. autostart should not take place if too much time
has elapsed since the termination of the previous node.agent - The agent for whom to autostart including the corresponding user session ID if
available. runtimeManager - The URI of the runtime manager in which the activity should be
autostarted. If this is null, no specific runtime manager has been set.
Otherwise the URIs do not refer to a runtime manager or the corresponding runtime
manager prefers to be notified instead of a pushed autostart. Refer to
rtmResolved to distinguish both cases.rtmResolved - Whether the runtime manager has been successfully resolved, that is, the
URIs specify a runtime manager but this wants a notification instead of a pushed
autostart.