Class ProcessDefinitionContextWork
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.failurewrapping.TxInHandleFailureWrappingWork
org.bonitasoft.engine.execution.work.failurewrapping.ProcessDefinitionContextWork
Adding context information about Process definition to exception for better logging
- Author:
- Celine Souchet
-
Field Summary
Fields inherited from class org.bonitasoft.engine.execution.work.TenantAwareBonitaWork
SERVICE_ACCESSORFields inherited from class org.bonitasoft.engine.work.BonitaWork
tenantId -
Constructor Summary
ConstructorsConstructorDescriptionProcessDefinitionContextWork(BonitaWork wrappedWork, long processDefinitionId) -
Method Summary
Modifier and TypeMethodDescriptionlongprotected voidsetExceptionContext(ExceptionContext sBonitaException, Map<String, Object> context) protected voidsetProcessDefinitionId(long processDefinitionId) Execution code of the workMethods inherited from class org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork
handleFailureMethods inherited from class org.bonitasoft.engine.execution.work.WrappingBonitaWork
getDescription, getRecoveryProcedure, getWrappedWork, toStringMethods inherited from class org.bonitasoft.engine.execution.work.TenantAwareBonitaWork
getServiceAccessorMethods inherited from class org.bonitasoft.engine.work.BonitaWork
canBeRecoveredByTheRecoveryMechanism, equals, getParent, getRootWork, getUuid, hashCode, setParent
-
Constructor Details
-
ProcessDefinitionContextWork
- Parameters:
wrappedWork- The work to wrapprocessDefinitionId- The identifier of the process definition
-
-
Method Details
-
work
Description copied from class:BonitaWorkExecution code of the work- Overrides:
workin classTxInHandleFailureWrappingWork- Parameters:
context- a map of context that can be filled by a work to be given to a wrapped work- Throws:
Exception
-
setExceptionContext
protected void setExceptionContext(ExceptionContext sBonitaException, Map<String, Object> context) throws SBonitaException- Specified by:
setExceptionContextin classTxInHandleFailureWrappingWork- Throws:
SBonitaException
-
getProcessDefinitionId
public long getProcessDefinitionId()- Returns:
- The identifier of the process definition
- Since:
- 6.3
-
setProcessDefinitionId
protected void setProcessDefinitionId(long processDefinitionId) - Parameters:
processDefinitionId- The identifier of the process definition- Since:
- 6.3
-