Class ExecuteFlowNodeWork
- java.lang.Object
-
- org.bonitasoft.engine.work.BonitaWork
-
- org.bonitasoft.engine.execution.work.TenantAwareBonitaWork
-
- org.bonitasoft.engine.execution.work.ExecuteFlowNodeWork
-
public class ExecuteFlowNodeWork extends TenantAwareBonitaWork
Work that is responsible of executing a flow node. If the execution fails it will put the flow node in failed state- Author:
- Baptiste Mesta, Celine Souchet, Matthieu Chaffotte
-
-
Field Summary
-
Fields inherited from class org.bonitasoft.engine.execution.work.TenantAwareBonitaWork
TENANT_ACCESSOR
-
Fields inherited from class org.bonitasoft.engine.work.BonitaWork
tenantId
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanBeRecoveredByTheRecoveryMechanism()java.lang.StringgetDescription()voidhandleFailure(java.lang.Throwable e, java.util.Map<java.lang.String,java.lang.Object> context)java.lang.StringtoString()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.TenantAwareBonitaWork
getTenantAccessor
-
Methods inherited from class org.bonitasoft.engine.work.BonitaWork
equals, getParent, getRecoveryProcedure, getRootWork, getTenantId, getUuid, hashCode, setParent, setTenantId
-
-
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin classBonitaWork
-
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- Specified by:
handleFailurein classBonitaWork- Throws:
java.lang.Exception
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
canBeRecoveredByTheRecoveryMechanism
public boolean canBeRecoveredByTheRecoveryMechanism()
- Overrides:
canBeRecoveredByTheRecoveryMechanismin classBonitaWork- Returns:
- true if the RecoveryService can recover this kind of failure
-
-