org.camunda.bpm.engine.impl.pvm.runtime
Class CompensationBehavior

java.lang.Object
  extended by org.camunda.bpm.engine.impl.pvm.runtime.CompensationBehavior

public class CompensationBehavior
extends Object

Contains the oddities required by compensation due to the execution structures it creates. Anything that is a cross-cutting concern, but requires some extra compensation-specific conditions, should go here.

Author:
Thorben Lindhauer

Constructor Summary
CompensationBehavior()
           
 
Method Summary
static boolean executesDefaultCompensationHandler(PvmExecutionImpl scopeExecution)
          Determines whether an execution is responsible for default compensation handling.
static boolean executesNonScopeCompensationHandler(PvmExecutionImpl execution)
          With compensation, we have a dedicated scope execution for every handler, even if the handler is not a scope activity; this must be respected when invoking end listeners, etc.
static String getParentActivityInstanceId(PvmExecutionImpl execution)
           
static boolean isCompensationThrowing(PvmExecutionImpl execution)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompensationBehavior

public CompensationBehavior()
Method Detail

executesNonScopeCompensationHandler

public static boolean executesNonScopeCompensationHandler(PvmExecutionImpl execution)
With compensation, we have a dedicated scope execution for every handler, even if the handler is not a scope activity; this must be respected when invoking end listeners, etc.


isCompensationThrowing

public static boolean isCompensationThrowing(PvmExecutionImpl execution)

executesDefaultCompensationHandler

public static boolean executesDefaultCompensationHandler(PvmExecutionImpl scopeExecution)
Determines whether an execution is responsible for default compensation handling. This is the case if


getParentActivityInstanceId

public static String getParentActivityInstanceId(PvmExecutionImpl execution)


Copyright © 2017 camunda services GmbH. All rights reserved.