Class NotifyChildFinishedWork
- java.lang.Object
-
- org.bonitasoft.engine.work.BonitaWork
-
- org.bonitasoft.engine.execution.work.TenantAwareBonitaWork
-
- org.bonitasoft.engine.execution.work.NotifyChildFinishedWork
-
public class NotifyChildFinishedWork extends TenantAwareBonitaWork
Work that notify a container that a flow node is in completed state e.g. when a flow node of a process finish we evaluate the outgoing transitions of this flow node.- Author:
- Baptiste Mesta, 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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanBeRecoveredByTheRecoveryMechanism()protected java.lang.ClassLoadergetClassLoader(java.util.Map<java.lang.String,java.lang.Object> context)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
-
getClassLoader
protected java.lang.ClassLoader getClassLoader(java.util.Map<java.lang.String,java.lang.Object> context) throws SBonitaException- Throws:
SBonitaException
-
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
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin classBonitaWork
-
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
-
-