Transition to {@link CaseExecutionState#TERMINATING_ON_TERMINATION} state.
If this
case execution is associated with a {@link Stage} or{@link Task}, then this
case execution must be in {@link CaseExecutionState#ACTIVE}state to be able to do this transition.
And if this
case execution is association with {@link EventListener EventListener}or a {@link Milestone}, then this
case execution must be in {@link CaseExecutionState#AVAILABLE} state to be able to do this transition.
For a {@link Stage} instance the termination of this
case executionwill be propagated down to all its contained {@link EventListener EventListener}, {@link Milestone}, {@link Stage}, and {@link Task} instances.
In case of a {@link Stage} this corresponding case execution stays in this state untilall children notified this case execution, that they terminated successfully. Afterwards the method {@link #performTerminate()} must be called to complete the transition into the state{@link CaseExecutionState#TERMINATED}.
@throws CaseIllegalStateTransitionException will be thrown, ifthis
case executionis not in the expected state.
@throws ProcessEngineException when an internal exception happens during the executionof the command.
|
|
|
|
|
|
|
|