Class CompensationBehavior
java.lang.Object
org.camunda.bpm.engine.impl.pvm.runtime.CompensationBehavior
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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic booleanexecutesDefaultCompensationHandler(PvmExecutionImpl scopeExecution) Determines whether an execution is responsible for default compensation handling.static booleanWith 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 StringgetParentActivityInstanceId(PvmExecutionImpl execution) static booleanisCompensationThrowing(PvmExecutionImpl execution)  
- 
Constructor Details
- 
CompensationBehavior
public CompensationBehavior() 
 - 
 - 
Method Details
- 
executesNonScopeCompensationHandler
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
 - 
executesDefaultCompensationHandler
Determines whether an execution is responsible for default compensation handling. This is the case if- the execution has an activity
 - the execution is a scope
 - the activity is a scope
 - the execution has children
 - the execution does not throw compensation
 
 - 
getParentActivityInstanceId
 
 -