Class InSessionBonitaWork
- 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.InSessionBonitaWork
-
public class InSessionBonitaWork extends WrappingBonitaWork
- Author:
- Emmanuel Duchastenier, Celine Souchet
-
-
Field Summary
-
Fields inherited from class org.bonitasoft.engine.execution.work.TenantAwareBonitaWork
TENANT_ACCESSOR
-
Fields inherited from class org.bonitasoft.engine.work.BonitaWork
tenantId
-
-
Constructor Summary
Constructors Constructor Description InSessionBonitaWork(BonitaWork work)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleFailure(java.lang.Throwable e, java.util.Map<java.lang.String,java.lang.Object> context)java.util.concurrent.CompletableFuture<java.lang.Void>work(java.util.Map<java.lang.String,java.lang.Object> context)Execution code of the work-
Methods inherited from class org.bonitasoft.engine.execution.work.WrappingBonitaWork
getDescription, getRecoveryProcedure, getTenantId, getWrappedWork, setTenantId, toString
-
Methods inherited from class org.bonitasoft.engine.execution.work.TenantAwareBonitaWork
getTenantAccessor
-
Methods inherited from class org.bonitasoft.engine.work.BonitaWork
canBeRecoveredByTheRecoveryMechanism, equals, getParent, getRootWork, getUuid, hashCode, setParent
-
-
-
-
Constructor Detail
-
InSessionBonitaWork
public InSessionBonitaWork(BonitaWork work)
-
-
Method Detail
-
work
public java.util.concurrent.CompletableFuture<java.lang.Void> work(java.util.Map<java.lang.String,java.lang.Object> context) throws java.lang.ExceptionDescription 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:
java.lang.Exception
-
handleFailure
public void handleFailure(java.lang.Throwable e, java.util.Map<java.lang.String,java.lang.Object> context) throws java.lang.Exception- Overrides:
handleFailurein classWrappingBonitaWork- Throws:
java.lang.Exception
-
-