Hello All.
Maybe it is the known issue - I have multiple service tasks in process, which are supposed to be called one by one. The issue is, that some of them are called multiple times. To be more presize - I have 3 service tasks, first one is called 1 time, second one is called 3 times, third task is called 2 times(I can see it in debug). Simplified process looks so:
<process id="simple-test" name="simple-test">
<startEvent id="start"/>
<sequenceFlow sourceRef="start" targetRef="firstServiceTask" />
<serviceTask id="firstServiceTask" name="First Service Task"
flowable:delegateExpression="${firstJavaDelegateSpringBean}" />
<sequenceFlow sourceRef="firstServiceTask" targetRef="secondServiceTask" />
<serviceTask id="secondServiceTask" name="Second Service Task"
flowable:delegateExpression="${secondJavaDelegateSpringBean}"/>
<sequenceFlow sourceRef="secondServiceTask" targetRef="thirdServiceTask"/>
<serviceTask id="thirdServiceTask" name="Schedule Auction Specification Event Action"
flowable:delegateExpression="${thirdJavaDelegateSpringBean}"/>
<sequenceFlow sourceRef="thirdServiceTask" targetRef="end"/>
<endEvent id="end"/>
</process>
Have you ever faced similar behavior? how did you solve it for yourself?
These 3 service tasks are executed in the same transaction.
If there is an uncatched exception in the third task, all tasks are re-executed. In this case, it's strange that you see that the first task is executed one time only.
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.