Class LockProcessInstanceWork
- 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.LockProcessInstanceWork
-
public class LockProcessInstanceWork extends WrappingBonitaWork
Transactional work that lock the process instance This work try to lock a process instance, if it can't be locked before the end of the TIMEOUT, we reschedule the fill stack of work on the work service.- Author:
- Charles Souillard, Baptiste Mesta
-
-
Field Summary
Fields Modifier and Type Field Description protected longprocessInstanceId-
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 LockProcessInstanceWork(BonitaWork wrappedWork, long processInstanceId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.WrappingBonitaWork
getDescription, getRecoveryProcedure, getTenantId, getWrappedWork, handleFailure, 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
-
LockProcessInstanceWork
public LockProcessInstanceWork(BonitaWork wrappedWork, long processInstanceId)
-
-
Method Detail
-
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
-
-