public class AsyncCompleteCallActivityJobHandler extends Object implements JobHandler
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.| Constructor and Description |
|---|
AsyncCompleteCallActivityJobHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(JobEntity job,
String configuration,
org.flowable.variable.api.delegate.VariableScope variableScope,
CommandContext commandContext) |
String |
getType() |
public static final String TYPE
public String getType()
getType in interface JobHandlerpublic void execute(JobEntity job, String configuration, org.flowable.variable.api.delegate.VariableScope variableScope, CommandContext commandContext)
execute in interface JobHandlerCopyright © 2020 Flowable. All rights reserved.