Transition to {@link CaseExecutionState#SUSPENDING_ON_SUSPENSION} 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 suspension of this
case executionwill be propagated down to all its contained {@link EventListener EventListener}, {@link Milestone}, {@link Stage}, and {@link Task} instances.
Afterwards the method {@link #performSuspension()} must be called to completethe transition into the state {@link CaseExecutionState#SUSPENDED}.
@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.
|
|
|
|