public interface SubInstanceStateNotification
InstanceControl.createAndStartSubInstance(SessionToken, EBPInstanceReference, de.aristaflow.adept2.model.execution.ExecutionContext, URI[]).
InstanceControl| Modifier and Type | Method and Description |
|---|---|
void |
instanceFailed(SessionToken session,
java.util.UUID instanceID,
EBPInstanceReference superLWP,
DataContainer dataContainer,
java.lang.String errorMessage,
java.lang.String state,
long errorCode)
Notifies that the designated subprocess instance has failed and provides
the necessary failure information.
|
void |
instanceFinished(SessionToken session,
java.util.UUID instanceID,
EBPInstanceReference superLWP,
DataContainer dataContainer)
Notifies that the designated subprocess instance has finished normally and
provides the output parameters of the instance.
|
void |
instanceResumed(SessionToken session,
java.util.UUID instanceID,
EBPInstanceReference superLWP)
Notifies that the designated subprocess instance has been resumed.
|
void |
instanceSuspended(SessionToken session,
java.util.UUID instanceID,
EBPInstanceReference superLWP,
DataContainer dataContainer)
Notifies that the designated subprocess instance has been suspended.
|
void instanceFinished(SessionToken session, java.util.UUID instanceID, EBPInstanceReference superLWP, DataContainer dataContainer)
session - The session for synchronising ADEPT2 internal method calls.instanceID - The ID of the subprocess instance that has finished
normally.superLWP - A reference to the corresponding parent LWP.dataContainer - The corresponding data container that contains the
values of the output parameters of the subprocess instance or null
in case the instance does not have output parameters.void instanceSuspended(SessionToken session, java.util.UUID instanceID, EBPInstanceReference superLWP, DataContainer dataContainer)
session - The session for synchronising ADEPT2 internal method calls.instanceID - The ID of the subprocess instance that has been
suspended.superLWP - A reference to the corresponding parent LWP.dataContainer - The corresponding data container that contains the
values of the parameters of the subprocess instance or null in
case the instance does not have parameters at all. The values of
the output parameters may not be the final ones since the
subprocess instance is only suspended and has not finished yet.
Please note that many output parameters may be Null due to the
intermediate suspension.void instanceResumed(SessionToken session, java.util.UUID instanceID, EBPInstanceReference superLWP)
session - The session for synchronising ADEPT2 internal method calls.instanceID - The ID of the subprocess instance that has been
resumed.superLWP - A reference to the corresponding parent LWP.void instanceFailed(SessionToken session, java.util.UUID instanceID, EBPInstanceReference superLWP, DataContainer dataContainer, java.lang.String errorMessage, java.lang.String state, long errorCode)
session - The session for synchronising ADEPT2 internal method calls.instanceID - The ID of the subprocess instance that failed or was
aborted.superLWP - A reference to the corresponding parent LWP.dataContainer - The corresponding data container that contains the
values of the output parameters of the subprocess instance which
have been produced until the failure occurred or null in case the
instance does not have output parameters. Please note that many
output parameters may be Null due to the failure.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.