- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2017 09:35 AM
I have created processes earlier on Alfresco Activiti which had single group or single user reviewer assignment. I am facing difficulty in assigning a parallel task to multiple users, using the form based BPMN designer. Has any one done this before? any pointers please?
- Labels:
-
Alfresco Process Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2017 11:57 AM
To use the collection feature, create a list of user id's and save them in a process variable.
e.g.
List<User> users = userService.getAllUsers(0,999,tenantId);
for (User u : users) {
idList.add(u.getId());
}execution.setVariable('assigneeList', idList);
Now, set the collection property to the name of this variable.
e.g.
Just a note, this is using the BPMN editor, I am not familiar enough with the Kickstart editor to know if it can handle this sort of thing.
Greg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2017 10:21 AM
You can achieve this in two ways:
1) Use of "parallel gateway"
2) Using the multi-instance property available on UserTask
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2017 10:48 AM
Hi Ciju,
Thanks for your response.... I did try this but I ave few queries...
I am using Alfresco Activiti application.
- On the submit form, I can add Group or Users... How can I add multiple Groups in the Form pallette?
- How to I store the group names in a variable? so that I can mention the variable name in Collection(Multi-Instance)
- under Assignment, what should I choose (I want multiple groups for parallel review, ideally a variable having all the groups)
Thanks in advance.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2017 11:57 AM
To use the collection feature, create a list of user id's and save them in a process variable.
e.g.
List<User> users = userService.getAllUsers(0,999,tenantId);
for (User u : users) {
idList.add(u.getId());
}execution.setVariable('assigneeList', idList);
Now, set the collection property to the name of this variable.
e.g.
Just a note, this is using the BPMN editor, I am not familiar enough with the Kickstart editor to know if it can handle this sort of thing.
Greg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2017 12:22 PM
Hi Greg,
Thank you for the response... the screenshots really helped... and yes I am using the same BPMN editor.
The problem with me is that I need to get multiple users from a custom Submit form, the Submit form does not have or maybe I cannot figure out a way to get multiple users in that form. pls check the screenshot below:
Appreciate your help!!!
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2017 01:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2017 02:12 PM
Thank you Greg.... let me look that up...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-14-2018 02:00 AM
Hi Paiyyavj13,
Have you find any solution. I have same requirement.How to select multiple users in form?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2018 06:46 PM
Hi Rachana _‌
I created a custom Stencil on Alfresco Process Services which I used for the field- allowing Multiple Users to be selected.
Check about the Custom Stencils to find out more...
Regards.
