Package org.activiti.engine.impl.agenda
Class EndExecutionOperation
- java.lang.Object
-
- org.activiti.engine.impl.agenda.AbstractOperation
-
- org.activiti.engine.impl.agenda.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.
-
-
Field Summary
-
Fields inherited from class org.activiti.engine.impl.agenda.AbstractOperation
agenda, commandContext, execution
-
-
Constructor Summary
Constructors Constructor Description EndExecutionOperation(CommandContext commandContext, ExecutionEntity execution)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanallChildExecutionsEnded(ExecutionEntity parentExecutionEntity, ExecutionEntity executionEntityToIgnore)protected java.util.List<ExecutionEntity>getActiveChildExecutionsForExecution(ExecutionEntityManager executionEntityManager, java.lang.String executionId)protected intgetNumberOfActiveChildExecutionsForExecution(ExecutionEntityManager executionEntityManager, java.lang.String executionId)protected intgetNumberOfActiveChildExecutionsForProcessInstance(ExecutionEntityManager executionEntityManager, java.lang.String processInstanceId)protected voidhandleMultiInstanceSubProcess(ExecutionEntityManager executionEntityManager, ExecutionEntity parentExecution)protected voidhandleProcessInstanceExecution(ExecutionEntity processInstanceExecution)protected voidhandleRegularExecution()protected ExecutionEntityhandleRegularExecutionEnd(ExecutionEntityManager executionEntityManager, ExecutionEntity parentExecution)protected ExecutionEntityhandleSubProcessEnd(ExecutionEntityManager executionEntityManager, ExecutionEntity parentExecution, org.activiti.bpmn.model.SubProcess subProcess)protected booleanisAllEventScopeExecutions(ExecutionEntityManager executionEntityManager, ExecutionEntity parentExecution)protected booleanisEndEventInMultiInstanceSubprocess(ExecutionEntity executionEntity)voidrun()-
Methods inherited from class org.activiti.engine.impl.agenda.AbstractOperation
executeExecutionListeners, executeExecutionListeners, findFirstParentScopeExecution, getAgenda, getCommandContext, getCurrentFlowElement, getExecution, setAgenda, setCommandContext, setExecution
-
-
-
-
Constructor Detail
-
EndExecutionOperation
public EndExecutionOperation(CommandContext commandContext, ExecutionEntity execution)
-
-
Method Detail
-
run
public void run()
-
handleProcessInstanceExecution
protected void handleProcessInstanceExecution(ExecutionEntity processInstanceExecution)
-
handleRegularExecution
protected void handleRegularExecution()
-
handleSubProcessEnd
protected ExecutionEntity handleSubProcessEnd(ExecutionEntityManager executionEntityManager, ExecutionEntity parentExecution, org.activiti.bpmn.model.SubProcess subProcess)
-
handleRegularExecutionEnd
protected ExecutionEntity handleRegularExecutionEnd(ExecutionEntityManager executionEntityManager, ExecutionEntity parentExecution)
-
handleMultiInstanceSubProcess
protected void handleMultiInstanceSubProcess(ExecutionEntityManager executionEntityManager, ExecutionEntity parentExecution)
-
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)
-
isAllEventScopeExecutions
protected boolean isAllEventScopeExecutions(ExecutionEntityManager executionEntityManager, ExecutionEntity parentExecution)
-
allChildExecutionsEnded
protected boolean allChildExecutionsEnded(ExecutionEntity parentExecutionEntity, ExecutionEntity executionEntityToIgnore)
-
-