org.activiti.engine.impl.bpmn.helper
类 ScopeUtil

java.lang.Object
  继承者 org.activiti.engine.impl.bpmn.helper.ScopeUtil

public class ScopeUtil
extends Object

作者:
Daniel Meyer, Nico Rehwaldt

构造方法摘要
ScopeUtil()
           
 
方法摘要
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.activiti.engine.impl.persistence.entity.ExecutionEntity, org.activiti.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.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ScopeUtil

public ScopeUtil()
方法详细信息

findScopeExecution

public static ActivityExecution findScopeExecution(ActivityExecution execution)
Find the next scope execution in the parent execution hierarchy That method works different than findScopeExecutionForScope(org.activiti.engine.impl.persistence.entity.ExecutionEntity, org.activiti.engine.impl.pvm.PvmScope) which returns the most outer scope execution.

参数:
execution - the execution from which to start the search
返回:
the next scope execution in the parent execution hierarchy

findScopeExecutionForScope

public static ExecutionEntity findScopeExecutionForScope(ExecutionEntity execution,
                                                         PvmScope scopeActivity)
returns the top-most execution sitting in an activity part of the scope defined by 'scopeActivitiy'.


findInParentScopesByBehaviorType

public static ActivityImpl findInParentScopesByBehaviorType(ActivityImpl activity,
                                                            Class<? extends ActivityBehavior> behaviorType)

throwCompensationEvent

public static void throwCompensationEvent(List<CompensateEventSubscriptionEntity> eventSubscriptions,
                                          ActivityExecution execution,
                                          boolean async)
we create a separate execution for each compensation handler invocation.


createEventScopeExecution

public 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. this allows us to "remember" the event subscriptions after finishing a scope



Copyright © 2013 Alfresco. All rights reserved.