org.camunda.bpm.engine.impl.bpmn.helper
Class CompensationUtil

java.lang.Object
  extended by org.camunda.bpm.engine.impl.bpmn.helper.CompensationUtil

public class CompensationUtil
extends Object

Author:
Daniel Meyer

Constructor Summary
CompensationUtil()
           
 
Method Summary
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 void throwCompensationEvent(List<CompensateEventSubscriptionEntity> eventSubscriptions, ActivityExecution execution, boolean async)
          we create a separate execution for each compensation handler invocation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompensationUtil

public CompensationUtil()
Method Detail

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 © 2015 camunda services GmbH. All rights reserved.