Package org.bonitasoft.engine.work
Class BonitaWork
java.lang.Object
org.bonitasoft.engine.work.BonitaWork
- Direct Known Subclasses:
TenantAwareBonitaWork
- Author:
- Baptiste Mesta
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanabstract Stringprotected BonitaWorkgetUuid()abstract voidhandleFailure(Throwable e, Map<String, Object> context) inthashCode()voidsetParent(BonitaWork parentWork) abstract CompletableFuture<Void>Execution code of the work
-
Field Details
-
tenantId
protected long tenantId
-
-
Constructor Details
-
BonitaWork
public BonitaWork()
-
-
Method Details
-
getUuid
-
getDescription
-
getRecoveryProcedure
- Returns:
- how to restart the work if it fails
-
work
Execution code of the work- Parameters:
context- a map of context that can be filled by a work to be given to a wrapped work- Throws:
Exception
-
handleFailure
- Throws:
Exception
-
canBeRecoveredByTheRecoveryMechanism
public boolean canBeRecoveredByTheRecoveryMechanism()- Returns:
- true if the RecoveryService can recover this kind of failure
-
setParent
-
getParent
-
getRootWork
-
equals
-
hashCode
public int hashCode()
-