Problem: Service task (which calls API) is invoked twice with OptimisticLockingException
Case: I have two sub processes and all service task calling Api’s and subprocesses are set to async before ‘true’ but got OptimisticLockingException.
also the same service task gets invoked twice before proceeding to next service task in sequence, when this happens the response from API received as part of the first invocation of serice task in not persisted in the DB and the response of 2nd API call is persisted.
when I am trying to resolve that by exclusive true my service tasks are running sequentially across the sub processes. Now I want to run my sub processes in parallel with single invocation of same service task within the sub process.
diagram_1.bpmn (24.1 KB)
@pranav Your process doesn’t have end event and joining parallel gateway. Add the join parallel gateway like below example.
@aravindhrs thanks for the reply, we have a requirement of a continuous running process and hence do not have a end event.
When we split the 3 sub processes in separate models everything works as expected. The execution platform version we are using is 7.18.0