Variable Number of Parallel Tasks using Parallel Gatway
![sankarts sankarts](https://connect.hyland.com/legacyfs/online/avatars/Blue-user-logo.png)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2014 02:53 AM
I would like to perform identical task on multiple target elements concurrently as "parallel tasks".
The catch here is that number of parallel tasks is variable (may vary from 2 to 20 for example) and shall vary on every run of "workflow process instance". Also, the count of parallel tasks is not known in advance.
Query:
Whether Activiti supports executing variable number of parallel tasks? If so, how the same can be achieved?
Please let me know, if you need any further info.
Thanks in advance.
The catch here is that number of parallel tasks is variable (may vary from 2 to 20 for example) and shall vary on every run of "workflow process instance". Also, the count of parallel tasks is not known in advance.
Query:
Whether Activiti supports executing variable number of parallel tasks? If so, how the same can be achieved?
Please let me know, if you need any further info.
Thanks in advance.
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2014 05:38 AM
Yes, use a multi instance (http://activiti.org/userguide/index.html#bpmnMultiInstance) for the specific task. it takes a collection.
![sankarts sankarts](https://connect.hyland.com/legacyfs/online/avatars/Blue-user-logo.png)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-07-2014 11:27 AM
Thanks for the reply.
As part of multi-instance, I specify for example, activiti:collection="$(names}".
where "names" contains 2 values say abc & xyz.
Using multiple parallel tasks, how can I create 2 files concurrently with one file name being "abc" and other being "xyz"?
It would be great, if you can point me some sample.
As part of multi-instance, I specify for example, activiti:collection="$(names}".
where "names" contains 2 values say abc & xyz.
Using multiple parallel tasks, how can I create 2 files concurrently with one file name being "abc" and other being "xyz"?
It would be great, if you can point me some sample.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2014 06:48 AM
Use a service task in a multi instance. Create a file based on the elementVariable (variable is available in the service task). And that's it.
![](/skins/images/A90266AC6EB1934BC937DAFB2842964E/responsive_peak/images/icon_anonymous_message.png)