Package org.camunda.bpm.engine.impl
Class ActivityExecutionTreeMapping
- java.lang.Object
-
- org.camunda.bpm.engine.impl.ActivityExecutionTreeMapping
-
public class ActivityExecutionTreeMapping extends 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 Map<ScopeImpl,Set<ExecutionEntity>>
activityExecutionMapping
protected CommandContext
commandContext
protected ProcessDefinitionImpl
processDefinition
protected String
processInstanceId
-
Constructor Summary
Constructors Constructor Description ActivityExecutionTreeMapping(CommandContext commandContext, String processInstanceId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
assignExecutionsToActivities(List<ExecutionEntity> leaves)
protected List<ExecutionEntity>
fetchExecutionsForProcessInstance(ExecutionEntity execution)
protected List<ExecutionEntity>
findLeaves(List<ExecutionEntity> executions)
ExecutionEntity
getExecution(ActivityInstance activityInstance)
Set<ExecutionEntity>
getExecutions(ScopeImpl activity)
protected void
initialize()
protected ExecutionEntity
intersect(Set<ExecutionEntity> executions, 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 Map<ScopeImpl,Set<ExecutionEntity>> activityExecutionMapping
-
commandContext
protected CommandContext commandContext
-
processInstanceId
protected String processInstanceId
-
processDefinition
protected ProcessDefinitionImpl processDefinition
-
-
Constructor Detail
-
ActivityExecutionTreeMapping
public ActivityExecutionTreeMapping(CommandContext commandContext, String processInstanceId)
-
-
Method Detail
-
submitExecution
protected void submitExecution(ExecutionEntity execution, ScopeImpl scope)
-
getExecutions
public Set<ExecutionEntity> getExecutions(ScopeImpl activity)
-
getExecution
public ExecutionEntity getExecution(ActivityInstance activityInstance)
-
intersect
protected ExecutionEntity intersect(Set<ExecutionEntity> executions, String[] executionIds)
-
initialize
protected void initialize()
-
assignExecutionsToActivities
protected void assignExecutionsToActivities(List<ExecutionEntity> leaves)
-
mergeScopeExecutions
protected void mergeScopeExecutions(ExecutionEntity leaf)
-
fetchExecutionsForProcessInstance
protected List<ExecutionEntity> fetchExecutionsForProcessInstance(ExecutionEntity execution)
-
findLeaves
protected List<ExecutionEntity> findLeaves(List<ExecutionEntity> executions)
-
isLeaf
protected boolean isLeaf(ExecutionEntity execution)
event-scope executions are not considered in this mapping and must be ignored
-
-