Class CompensationScope
java.lang.Object
org.jbpm.process.core.context.AbstractContext
org.jbpm.process.core.context.exception.ExceptionScope
org.jbpm.process.core.context.exception.CompensationScope
- All Implemented Interfaces:
Serializable,Context
This scope represents the collection of compensation handlers in a (sub)process.
- See Also:
-
Field Summary
FieldsFields inherited from class org.jbpm.process.core.context.exception.ExceptionScope
EXCEPTION_SCOPE, exceptionHandlers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetExceptionHandler(String exception) getType()resolveContext(Object activityRefStr) Resolves in one of two cases: when the (String) activityRefStr is equal to: 1.voidsetContextContainer(ContextContainer contextContainer) voidsetContextContainerId(String containerId) Methods inherited from class org.jbpm.process.core.context.exception.ExceptionScope
getExceptionHandler, getExceptionHandlers, getHandlerFromPolicies, removeExceptionHandler, setExceptionHandler, setExceptionHandlersMethods inherited from class org.jbpm.process.core.context.AbstractContext
getContextContainer, getId, setId
-
Field Details
-
COMPENSATION_SCOPE
- See Also:
-
IMPLICIT_COMPENSATION_PREFIX
- See Also:
-
-
Constructor Details
-
CompensationScope
public CompensationScope()
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceContext- Overrides:
getTypein classExceptionScope
-
setContextContainer
- Overrides:
setContextContainerin classAbstractContext
-
setContextContainerId
-
getContextContainerId
-
getExceptionHandler
- Overrides:
getExceptionHandlerin classExceptionScope
-
resolveContext
Resolves in one of two cases: when the (String) activityRefStr is equal to: 1. the id of an activity that has a compensation handler. This could be a task with a compensation boundary event or a sub-process that contains a compensation event sub-process. 2. "general:" + the id of the (sub)process that contains the compensation handler. In this case, we are signalling the "implicit compensation handler", a.k.a. broadcast/general compensation.- Specified by:
resolveContextin interfaceContext- Overrides:
resolveContextin classExceptionScope
-