Class EndExecutionOperation

  • All Implemented Interfaces:
    java.lang.Runnable

    public class EndExecutionOperation
    extends AbstractOperation
    This operations ends an execution and follows the typical BPMN rules to continue the process (if possible).

    This operations is typically not scheduled from an ActivityBehavior, but rather from another operation. This happens when the conditions are so that the process can't continue via the regular ways and an execution cleanup needs to happen, potentially opening up new ways of continuing the process instance.

    • Method Detail

      • run

        public void run()
      • handleProcessInstanceExecution

        protected void handleProcessInstanceExecution​(ExecutionEntity processInstanceExecution)
      • handleRegularExecution

        protected void handleRegularExecution()
      • isEndEventInMultiInstanceSubprocess

        protected boolean isEndEventInMultiInstanceSubprocess​(ExecutionEntity executionEntity)
      • getNumberOfActiveChildExecutionsForProcessInstance

        protected int getNumberOfActiveChildExecutionsForProcessInstance​(ExecutionEntityManager executionEntityManager,
                                                                         java.lang.String processInstanceId)
      • getNumberOfActiveChildExecutionsForExecution

        protected int getNumberOfActiveChildExecutionsForExecution​(ExecutionEntityManager executionEntityManager,
                                                                   java.lang.String executionId)
      • getActiveChildExecutionsForExecution

        protected java.util.List<ExecutionEntity> getActiveChildExecutionsForExecution​(ExecutionEntityManager executionEntityManager,
                                                                                       java.lang.String executionId)
      • allChildExecutionsEnded

        protected boolean allChildExecutionsEnded​(ExecutionEntity parentExecutionEntity,
                                                  ExecutionEntity executionEntityToIgnore)