Multi instance completion condition behaviour

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-22-2015 07:17 AM
Hello at all,
I read in the Activiti documentation the following: when the completion expression evaluates to true, all remaining instances are destroyed]/b] and the multi-instance activity ends, continuing the process.
I have the use case, that subsequent completions of the remaining instances are inconsequential (see workflow pattern 34: http://www.workflowpatterns.com/patterns/control/new/wcp34.php)
Lets say we have a multi instance loop cardinality of M.
My question is: is there a way to complete N of M instances within a Multi Instance task, continue with the process, but the remaining M-N instances WON´T BE DESTROYED so that the completion of those remaining instances may occur or not?
Maybe with a signal event or something?
Any ideas are welcome.
Thanks and best regards
Ben
I read in the Activiti documentation the following: when the completion expression evaluates to true, all remaining instances are destroyed]/b] and the multi-instance activity ends, continuing the process.
I have the use case, that subsequent completions of the remaining instances are inconsequential (see workflow pattern 34: http://www.workflowpatterns.com/patterns/control/new/wcp34.php)
Lets say we have a multi instance loop cardinality of M.
My question is: is there a way to complete N of M instances within a Multi Instance task, continue with the process, but the remaining M-N instances WON´T BE DESTROYED so that the completion of those remaining instances may occur or not?
Maybe with a signal event or something?
Any ideas are welcome.
Thanks and best regards
Ben
Labels:
- Labels:
-
Archive
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2015 09:08 AM
Added a ticket: https://activiti.atlassian.net/browse/ACT-4008

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2015 09:12 AM
Hi Ben,
The only we to implement this behaviour would be to add a parallel gateway and signal the other path when a certain amount of multi instance loops have been completed.
Best regards,
The only we to implement this behaviour would be to add a parallel gateway and signal the other path when a certain amount of multi instance loops have been completed.
Best regards,

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2015 09:15 AM
Hi Tijs,
thanks for your feedback. I already thought about this way of solving it. But how can I fire that signal while iterating through the multi instance task?
thanks for your feedback. I already thought about this way of solving it. But how can I fire that signal while iterating through the multi instance task?
