Class AsyncCompleteCallActivityJobHandler
java.lang.Object
org.flowable.engine.impl.jobexecutor.AsyncCompleteCallActivityJobHandler
- All Implemented Interfaces:
JobHandler
A
JobHandler
implementation 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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(JobEntity job, String configuration, VariableScope variableScope, CommandContext commandContext) getType()
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
AsyncCompleteCallActivityJobHandler
public AsyncCompleteCallActivityJobHandler()
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceJobHandler
-
execute
public void execute(JobEntity job, String configuration, VariableScope variableScope, CommandContext commandContext) - Specified by:
execute
in interfaceJobHandler
-