Interface IEventsProcessEngine
- All Known Implementing Classes:
StateMachine
public interface IEventsProcessEngine
This 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
Modifier and TypeMethodDescriptionCompute the current / projected final workflow status (excluding FATAL steps, but including cancel requests)voidThe ProcessEngine callback on system error occurredvoidonProcessEngineCancel(WorkerParameters workerParameters) The ProcessEngine callback when the step is cancelledvoidonProcessEngineCompleteStep(ItemStatus itemStatus, WorkerParameters workerParameters) The ProcessEngine callback on complete step (for any status code)voidonUpdate(StatusCode statusCode) Update the current step status codevoid
-
Method Details
-
onUpdate
Update the current step status code- Parameters:
statusCode-
-
computeCurrentWorkflowOutcome
StatusCode computeCurrentWorkflowOutcome()Compute the current / projected final workflow status (excluding FATAL steps, but including cancel requests) -
onUpdate
- Parameters:
messageIdentifier-originatingAgency-
-
onProcessEngineCompleteStep
The ProcessEngine callback on complete step (for any status code)- Parameters:
itemStatus-workerParameters-
-
onProcessEngineCancel
The ProcessEngine callback when the step is cancelled- Parameters:
workerParameters-
-
onError
The ProcessEngine callback on system error occurred- Parameters:
throwable-
-