Hi, I have a very simple parallel gateway process I’m using to create 2 User Tasks, each User Task runs a separate sub-process in parallel. The process works fine except the Process Instance is left after all sub-processes complete.
It’s probably something obvious, but I can’t seem to locate how to complete the Process Instance :
2018-10-29 14:09:38 - FlowableController().doCompleteTaskWithInput() - Encountered an error/exception : [ProcessInstance[115001] was updated by another transaction concurrently]
I did manage to get this working so that the Process Instance gets completed, BUT the combinations of async and exclusive are IMPORTANT. Also, in order to work the Async Job Executor needs to be turned on…my was initial false (off) :
ProcessEngineConfiguration ltheCfg = getProcessEngine().getProcessEngineConfiguration ();
boolean ljobActivator = ltheCfg.getAsyncExecutor().isActive();
if (!(ljobActivator)) {
ltheCfg.getAsyncExecutor().start (); // Turns on the Async Job Executor...
}
ljobActivator = ltheCfg.getAsyncExecutor().isActive();
I fiddled with the following settings on the serviceTask XML elements and parallelGateway XML elements :
flowable:async="false" - On both serviceTask and parallelGateway
flowable:async="true" - On both serviceTask and parallelGateway
flowable:exclusive="false" - On serviceTask
flowable:exclusive="true" - On serviceTask