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
-
public class ProcessDefinitionContextWork extends TxInHandleFailureWrappingWork
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
TENANT_ACCESSOR
-
Fields inherited from class org.bonitasoft.engine.work.BonitaWork
tenantId
-
-
Constructor Summary
Constructors Constructor Description ProcessDefinitionContextWork(BonitaWork wrappedWork, long processDefinitionId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetProcessDefinitionId()protected voidsetExceptionContext(SBonitaException sBonitaException, java.util.Map<java.lang.String,java.lang.Object> context)protected voidsetProcessDefinitionId(long processDefinitionId)-
Methods inherited from class org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork
handleFailure, work
-
Methods inherited from class org.bonitasoft.engine.execution.work.WrappingBonitaWork
getDescription, getRecoveryProcedure, getTenantId, getWrappedWork, setTenantId, toString
-
Methods inherited from class org.bonitasoft.engine.execution.work.TenantAwareBonitaWork
getTenantAccessor
-
Methods inherited from class org.bonitasoft.engine.work.BonitaWork
canBeRecoveredByTheRecoveryMechanism, equals, getParent, getRootWork, getUuid, hashCode, setParent
-
-
-
-
Constructor Detail
-
ProcessDefinitionContextWork
public ProcessDefinitionContextWork(BonitaWork wrappedWork, long processDefinitionId)
- Parameters:
wrappedWork- The work to wrapprocessDefinitionId- The identifier of the process definition
-
-
Method Detail
-
setExceptionContext
protected void setExceptionContext(SBonitaException sBonitaException, java.util.Map<java.lang.String,java.lang.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
-
-