public abstract class TxInHandleFailureWrappingWork extends WrappingBonitaWork
TxBonitaWorkTENANT_ACCESSORtenantId| Constructor and Description |
|---|
TxInHandleFailureWrappingWork(BonitaWork work) |
| Modifier and Type | Method and Description |
|---|---|
void |
handleFailure(Throwable e,
Map<String,Object> context) |
protected abstract void |
setExceptionContext(org.bonitasoft.engine.commons.exceptions.SBonitaException sBonitaException,
Map<String,Object> context) |
CompletableFuture<Void> |
work(Map<String,Object> context)
Execution code of the work
|
getDescription, getRecoveryProcedure, getTenantId, getWrappedWork, setTenantId, toStringgetTenantAccessorpublic TxInHandleFailureWrappingWork(BonitaWork work)
public CompletableFuture<Void> work(Map<String,Object> context) throws Exception
BonitaWorkwork in class BonitaWorkcontext - a map of context that can be filled by a work to be given to a wrapped workExceptionpublic void handleFailure(Throwable e, Map<String,Object> context) throws Exception
handleFailure in class WrappingBonitaWorkExceptionCopyright © 2019 Bonitasoft S.A.. All rights reserved.