public class ScopeUtil extends Object
| Constructor and Description | 
|---|
ScopeUtil()  | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
createEventScopeExecution(ExecutionEntity execution)
creates an event scope for the given execution:
 
 create a new event scope execution under the parent of the given 
 execution and move all event subscriptions to that execution. 
 | 
static ActivityImpl | 
findInParentScopesByBehaviorType(ActivityImpl activity,
                                Class<? extends ActivityBehavior> behaviorType)  | 
static ActivityExecution | 
findScopeExecution(ActivityExecution execution)
Find the next scope execution in the parent execution hierarchy
 That method works different than  
findScopeExecutionForScope(org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity, org.camunda.bpm.engine.impl.pvm.PvmScope) 
 which returns the most outer scope execution. | 
static ExecutionEntity | 
findScopeExecutionForScope(ExecutionEntity execution,
                          PvmScope scopeActivity)
returns the top-most execution sitting in an activity part of the scope defined by 'scopeActivitiy'. 
 | 
static void | 
throwCompensationEvent(List<CompensateEventSubscriptionEntity> eventSubscriptions,
                      ActivityExecution execution,
                      boolean async)
we create a separate execution for each compensation handler invocation. 
 | 
public static ActivityExecution findScopeExecution(ActivityExecution execution)
findScopeExecutionForScope(org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity, org.camunda.bpm.engine.impl.pvm.PvmScope) 
 which returns the most outer scope execution.execution - the execution from which to start the searchpublic static ExecutionEntity findScopeExecutionForScope(ExecutionEntity execution, PvmScope scopeActivity)
public static ActivityImpl findInParentScopesByBehaviorType(ActivityImpl activity, Class<? extends ActivityBehavior> behaviorType)
public static void throwCompensationEvent(List<CompensateEventSubscriptionEntity> eventSubscriptions, ActivityExecution execution, boolean async)
public static void createEventScopeExecution(ExecutionEntity execution)
Copyright © 2015. All rights reserved.