Package org.camunda.bpm.engine.impl
Class ActivityExecutionTreeMapping
- java.lang.Object
-
- org.camunda.bpm.engine.impl.ActivityExecutionTreeMapping
-
public class ActivityExecutionTreeMapping extends java.lang.Object
Maps an activity (plain activities + their containing flow scopes) to the scope executions that are executing them. For every instance of a scope, there is one such execution.- Author:
- Thorben Lindhauer
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<ScopeImpl,java.util.Set<ExecutionEntity>>
activityExecutionMapping
protected CommandContext
commandContext
protected ProcessDefinitionImpl
processDefinition
protected java.lang.String
processInstanceId
-
Constructor Summary
Constructors Constructor Description ActivityExecutionTreeMapping(CommandContext commandContext, java.lang.String processInstanceId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
assignExecutionsToActivities(java.util.List<ExecutionEntity> leaves)
protected java.util.List<ExecutionEntity>
fetchExecutionsForProcessInstance(ExecutionEntity execution)
protected java.util.List<ExecutionEntity>
findLeaves(java.util.List<ExecutionEntity> executions)
ExecutionEntity
getExecution(ActivityInstance activityInstance)
java.util.Set<ExecutionEntity>
getExecutions(ScopeImpl activity)
protected void
initialize()
protected ExecutionEntity
intersect(java.util.Set<ExecutionEntity> executions, java.lang.String[] executionIds)
protected boolean
isLeaf(ExecutionEntity execution)
event-scope executions are not considered in this mapping and must be ignoredprotected void
mergeScopeExecutions(ExecutionEntity leaf)
protected void
submitExecution(ExecutionEntity execution, ScopeImpl scope)
-
-
-
Field Detail
-
activityExecutionMapping
protected java.util.Map<ScopeImpl,java.util.Set<ExecutionEntity>> activityExecutionMapping
-
commandContext
protected CommandContext commandContext
-
processInstanceId
protected java.lang.String processInstanceId
-
processDefinition
protected ProcessDefinitionImpl processDefinition
-
-
Constructor Detail
-
ActivityExecutionTreeMapping
public ActivityExecutionTreeMapping(CommandContext commandContext, java.lang.String processInstanceId)
-
-
Method Detail
-
submitExecution
protected void submitExecution(ExecutionEntity execution, ScopeImpl scope)
-
getExecutions
public java.util.Set<ExecutionEntity> getExecutions(ScopeImpl activity)
-
getExecution
public ExecutionEntity getExecution(ActivityInstance activityInstance)
-
intersect
protected ExecutionEntity intersect(java.util.Set<ExecutionEntity> executions, java.lang.String[] executionIds)
-
initialize
protected void initialize()
-
assignExecutionsToActivities
protected void assignExecutionsToActivities(java.util.List<ExecutionEntity> leaves)
-
mergeScopeExecutions
protected void mergeScopeExecutions(ExecutionEntity leaf)
-
fetchExecutionsForProcessInstance
protected java.util.List<ExecutionEntity> fetchExecutionsForProcessInstance(ExecutionEntity execution)
-
findLeaves
protected java.util.List<ExecutionEntity> findLeaves(java.util.List<ExecutionEntity> executions)
-
isLeaf
protected boolean isLeaf(ExecutionEntity execution)
event-scope executions are not considered in this mapping and must be ignored
-
-