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
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
executesDefaultCompensationHandler
(PvmExecutionImpl scopeExecution) Determines whether an execution is responsible for default compensation handling.static boolean
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)
-
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
-