Process State Diagram
Note: The
ProcessExecutor using the ProcessStateManager
actions are the responsibility of the implemented ProcessExecutor.
Optional ProcessExecutor Implementation Items
- The pause and stop related actions are only relevant if your ProcessExecutor declares that it is stoppable or resumable using the indicator interfaces (
StoppableExecutor
orResumableExecutor
). - Your ProcessExecutor is not required to handle the direct state change from
Running
toStopped
orPaused
. It is considered a valid state change but may not be applicable to your implementation. - The handling of the direct state change from
Running
toCompleted
with a sub-status ofError
is also not required. This is intended to be used when your process has an error threshold. Once that threshold is met, execution should be terminated and the error state would be recorded. - When successfully completing the execution of a process (
Completed
with sub-statusFinished
), the ProcessExecutor can record the completed state and provide some helpful contextual information in the completion message. If this is not done, the ProcessExecutionManager will record the completed state with a default message.