org.camunda.bpm.engine.impl
Class ActivityExecutionTreeMapping

java.lang.Object
  extended by 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
protected  Map<ScopeImpl,Set<ExecutionEntity>> activityExecutionMapping
           
protected  CommandContext commandContext
           
protected  ProcessDefinitionImpl processDefinition
           
protected  String processInstanceId
           
 
Constructor Summary
ActivityExecutionTreeMapping(CommandContext commandContext, String processInstanceId)
           
 
Method Summary
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 ignored
protected  void mergeScopeExecutions(ExecutionEntity leaf)
           
protected  void submitExecution(ExecutionEntity execution, ScopeImpl scope)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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



Copyright © 2016 camunda services GmbH. All rights reserved.