Process State Diagram
Note: The
ProcessExecutor using the ProcessStateManageractions 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 (
StoppableExecutororResumableExecutor). - Your ProcessExecutor is not required to handle the direct state change from
RunningtoStoppedorPaused. It is considered a valid state change but may not be applicable to your implementation. - The handling of the direct state change from
RunningtoCompletedwith a sub-status ofErroris 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 (
Completedwith 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.
