Class TxInHandleFailureWrappingWork
java.lang.Object
org.bonitasoft.engine.work.BonitaWork
org.bonitasoft.engine.execution.work.TenantAwareBonitaWork
org.bonitasoft.engine.execution.work.WrappingBonitaWork
org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork
- Direct Known Subclasses:
ConnectorDefinitionAndInstanceContextWork,FlowNodeDefinitionAndInstanceContextWork,MessageInstanceContextWork,ProcessDefinitionContextWork,ProcessInstanceContextWork
This work manages the transaction in its handleFailure method.
Don't use this work with
TxBonitaWork- Author:
- Celine Souchet
-
Field Summary
Fields inherited from class org.bonitasoft.engine.execution.work.TenantAwareBonitaWork
SERVICE_ACCESSORFields inherited from class org.bonitasoft.engine.work.BonitaWork
tenantId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleFailure(Throwable e, Map<String, Object> context) protected abstract voidsetExceptionContext(ExceptionContext exceptionContext, Map<String, Object> context) Execution code of the workMethods inherited from class org.bonitasoft.engine.execution.work.WrappingBonitaWork
getDescription, getRecoveryProcedure, getWrappedWork, toStringMethods inherited from class org.bonitasoft.engine.execution.work.TenantAwareBonitaWork
getServiceAccessorMethods inherited from class org.bonitasoft.engine.work.BonitaWork
canBeRecoveredByTheRecoveryMechanism, equals, getParent, getRootWork, getUuid, hashCode, setParent
-
Constructor Details
-
TxInHandleFailureWrappingWork
-
-
Method Details
-
work
Description copied from class:BonitaWorkExecution code of the work- Specified by:
workin classBonitaWork- Parameters:
context- a map of context that can be filled by a work to be given to a wrapped work- Throws:
Exception
-
handleFailure
- Overrides:
handleFailurein classWrappingBonitaWork- Throws:
Exception
-
setExceptionContext
protected abstract void setExceptionContext(ExceptionContext exceptionContext, Map<String, Object> context) throws SBonitaException- Throws:
SBonitaException
-