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?
Solved! Go to Solution.
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
You can achieve this in two ways:
1) Use of "parallel gateway"
2) Using the multi-instance property available on UserTask
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.
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
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.
Thank you Greg.... let me look that up...
Hi Paiyyavj13,
Have you find any solution. I have same requirement.How to select multiple users in form?
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.
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.