I have a Problem with Advance Pack 3.7.2 / EspoCRM 9.0.4 using a "Conditional Intermediate Event (Boundary)" event on a multi-instance sub-process:

My goal is to stop the multi-instance sup-process for review if a user selects in the review task "changes" as resolution.
In the sub-process a script task checks the user task's outcome and once the "resolution" is "changes" the entity property "status" is set to "changes"
I created a canceling "Conditional Intermediate Event (Boundary)" (Changes) which has the condition "status"="changes".
Once this event fires I have 2 issues:
* the event is not only cancelling the sub-process but also the main process. Then in a later "Send Message Task" fails with status 500 because the process already ended:
[2025-03-06 12:02:46] ERROR: (500) Attempted to continue flow of not active process 67c98ec68d02ef31e. :: /var/www/html/espocrm/custom/Espo/Modules/Advanced/Core/Bpmn/BpmnManager.php(892)
* If the "Conditional Intermediate Event (Boundary)" (Changes) fires, the multi-instance subprocess does not write the "Collection Return Variable", so I have no way to read the outcome in the main process. I tried to add a inclusive gateway to wait until the sub-process ended but it looks like the final logic to write the outcome into that collection variable does not run on a boundary event. At least this worked in a previous version.
Am I doing something wrong or are these bugs in the latest version of the Advance Pack?
Thanks for any help
My goal is to stop the multi-instance sup-process for review if a user selects in the review task "changes" as resolution.
In the sub-process a script task checks the user task's outcome and once the "resolution" is "changes" the entity property "status" is set to "changes"
I created a canceling "Conditional Intermediate Event (Boundary)" (Changes) which has the condition "status"="changes".
Once this event fires I have 2 issues:
* the event is not only cancelling the sub-process but also the main process. Then in a later "Send Message Task" fails with status 500 because the process already ended:
[2025-03-06 12:02:46] ERROR: (500) Attempted to continue flow of not active process 67c98ec68d02ef31e. :: /var/www/html/espocrm/custom/Espo/Modules/Advanced/Core/Bpmn/BpmnManager.php(892)
* If the "Conditional Intermediate Event (Boundary)" (Changes) fires, the multi-instance subprocess does not write the "Collection Return Variable", so I have no way to read the outcome in the main process. I tried to add a inclusive gateway to wait until the sub-process ended but it looks like the final logic to write the outcome into that collection variable does not run on a boundary event. At least this worked in a previous version.
Am I doing something wrong or are these bugs in the latest version of the Advance Pack?
Thanks for any help
Comment