For a multi instance parallel user task I have configured conditions on all outgoing sequence flows. When the task gets complete, Activiti engine is marking all its subsequent task as pending even if condition on only one flow was true.
E.g. Task A goes to task B and task C and conditions are defined on both the sequence flows. Then on completion of task A even if condition on flow going to task B was true task C also gets marked as Pending.
This behavior is observed only when the task A is multi instance parallel task. If it is multi instance sequential task then this behavior is not observed.
Has any one faced this issue before? Is this resolved in latest Activiti version. The engine version I am using is 5.16.4.
Could you please post an example bpmn file which shows your use case description? Btw, 5.16 is quite an old version, I suggest testing your process either in the latest 5.x branch (5.22.0) or 6.0.0 branch just to make sure you are not hitting a bug which may be fixed in one of the newer versions!
Hi,
I am uploading the templates which I have used. Template "TestBpmnprocess.bpmn20.xml" is the one which has issue while template "TestBpmnprocessUpdated.bpmn20.xml" works when I change the "isSequential" flag from "multiInstanceLoopCharacteristics" node as true.
Yes, the Activiti engine I am using is not latest but could not switch to it right away as we have developed quite a bit on this version. Eventually will move to the latest version.
Hi Roopa,
It's most likely a bug with the multi-instance. Do you mind creating a issue on Activiti project with a reference to this post or even making a contribution with a fix!!
The reason why this might have gone unnoticed is that, people typically will have a gateway in such situation. For example, if you add an exclusive gateway right after Task 1 (as shown below), it works fine for parallel as well.
Hope this helps
Hi Joseph,
Thanks for your reply. Yes I am aware that if a gateway is added it works and that is the work around I have used. Yes, I will create an issue on Activiti project.
Thanks.
Joseph do you have link to the system where I can create issue on Activiti project? If yes can you please share?
Got it.
Please create a github issue on the github project itself.
As per the comments on Issue with multi instance parallel user task and conditional sequence flows · Issue #1633 · Activiti... , this issue is fixed in Activiti V6.
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.