public abstract class BonitaWork extends Object
| Modifier and Type | Field and Description |
|---|---|
protected long |
tenantId |
| Constructor and Description |
|---|
BonitaWork() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
abstract String |
getDescription() |
BonitaWork |
getParent() |
String |
getRecoveryProcedure() |
long |
getTenantId() |
String |
getUuid() |
abstract void |
handleFailure(Throwable e,
Map<String,Object> context) |
int |
hashCode() |
void |
setParent(BonitaWork parentWork) |
void |
setTenantId(long tenantId) |
abstract CompletableFuture<Void> |
work(Map<String,Object> context)
Execution code of the work
|
public String getUuid()
public abstract String getDescription()
public String getRecoveryProcedure()
public abstract CompletableFuture<Void> work(Map<String,Object> context) throws Exception
context - a map of context that can be filled by a work to be given to a wrapped workExceptionpublic abstract void handleFailure(Throwable e, Map<String,Object> context) throws Exception
Exceptionpublic long getTenantId()
public void setTenantId(long tenantId)
public void setParent(BonitaWork parentWork)
public BonitaWork getParent()
Copyright © 2018 Bonitasoft S.A.. All rights reserved.