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?
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
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
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.
Thanks in advance.
Regards.
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
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.
01-12-2017 01:56 PM
01-12-2017 02:12 PM
Thank you Greg.... let me look that up...
08-14-2018 02:00 AM
Hi Paiyyavj13,
Have you find any solution. I have same requirement.How to select multiple users in form?
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.
Explore our Alfresco products with the links below. Use labels to filter content by product module.