Interface IEventsProcessEngine
-
- All Known Implementing Classes:
StateMachine
public interface IEventsProcessEngineThis implemented by the state machine and passed to the ProcessEngine ProcessEngine can with this callback the state machine and update it with the information about the execution of step with her status code
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonComplete(ItemStatus itemStatus, WorkerParameters workerParameters)The ProcessEngine callback on complete step (for any status code)voidonError(java.lang.Throwable throwable)The ProcessEngine callback on system error occurredvoidonPauseOrCancel(PauseOrCancelAction pauseOrCancelAction, WorkerParameters workerParameters)The ProcessEngine callback onPauseOrCancel when the step is paused or cancelledvoidonUpdate(StatusCode statusCode)Update the current step status codevoidonUpdate(java.lang.String messageIdentifier, java.lang.String originatingAgency)
-
-
-
Method Detail
-
onUpdate
void onUpdate(StatusCode statusCode)
Update the current step status code- Parameters:
statusCode-
-
onUpdate
void onUpdate(java.lang.String messageIdentifier, java.lang.String originatingAgency)- Parameters:
messageIdentifier-originatingAgency-
-
onComplete
void onComplete(ItemStatus itemStatus, WorkerParameters workerParameters)
The ProcessEngine callback on complete step (for any status code)- Parameters:
itemStatus-workerParameters-
-
onPauseOrCancel
void onPauseOrCancel(PauseOrCancelAction pauseOrCancelAction, WorkerParameters workerParameters)
The ProcessEngine callback onPauseOrCancel when the step is paused or cancelled- Parameters:
pauseOrCancelAction-workerParameters-
-
onError
void onError(java.lang.Throwable throwable)
The ProcessEngine callback on system error occurred- Parameters:
throwable-
-
-