Hi Team,
I have 20+ service task. and i made all the service task “flowable:async=“true”” in BPMN.xml
so in my 10th service task, im calling(REST call) an external api it takes 8 mintues to execute and return the response back to service task.
once the response back , im getting FlowableOptimisticLockingException
(org.flowable.common.engine.api.FlowableOptimisticLockingException: Execution[ id ‘09f7f5fd-676e-11ea-b9c2-0050568e1cce’ ] - activity ‘phase2-execute’ - parent ‘09f732a4-676e-11ea-b9c2-0050568e1cce’ was updated by another transaction concurrently)
but instead of going into next service task as per the sequence flow defined , it is trying the same service task again and again this is keep on going …
bpmn.xml as follows,
< serviceTask id=“phase1” name=“phase1-execute”
flowable:async=“true” flowable:delegateExpression="${phase1Service}" >
< extensionElements>
flowable:failedJobRetryTimeCycle>R1/PT1M</flowable:failedJobRetryTimeCycle
< /extensionElements>
< /serviceTask>
< sequenceFlow sourceRef=“phase1” targetRef=“phase2” />
< serviceTask id=“phase2” name=“phase2-execute”
flowable:async=“true” flowable:delegateExpression="${phase2Service}" >
< extensionElements >
flowable:failedJobRetryTimeCycle>R1/PT1M</flowable:failedJobRetryTimeCycle
< /extensionElements>
< /serviceTask>
kindly help me to resolve this issue