Class AsyncCompleteCallActivityJobHandler
- java.lang.Object
-
- org.flowable.engine.impl.jobexecutor.AsyncCompleteCallActivityJobHandler
-
- All Implemented Interfaces:
JobHandler
public class AsyncCompleteCallActivityJobHandler extends Object implements JobHandler
AJobHandlerimplementation that asynchronously will end an execution asynchronously. Primary use case is handling a parallel multi-instance call activity where the child process has an async step just before reaching the end event. The async locking happens on the level of the child process instance, but the end event will execute the completing/completed callbacks of the call activity, which are done in scope of the parent process instance and can lead to optimistic locking exceptions. By scheduling the job in context of the parent process instance, the correct lock will be used.- Author:
- Joram Barrez
-
-
Constructor Summary
Constructors Constructor Description AsyncCompleteCallActivityJobHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(JobEntity job, String configuration, org.flowable.variable.api.delegate.VariableScope variableScope, CommandContext commandContext)StringgetType()
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public String getType()
- Specified by:
getTypein interfaceJobHandler
-
execute
public void execute(JobEntity job, String configuration, org.flowable.variable.api.delegate.VariableScope variableScope, CommandContext commandContext)
- Specified by:
executein interfaceJobHandler
-
-