cancel
Showing results for 
Search instead for 
Did you mean: 

How to design a parallel group review workflow using Alfresco Activiti KickStart Designer App?

paiyyavj13
Star Contributor
Star Contributor

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?

1 ACCEPTED ANSWER

gdharley
Elite Collaborator
Elite Collaborator

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

View answer in original post

8 REPLIES 8

cjose
Elite Collaborator
Elite Collaborator

You can achieve this in two ways:

1) Use of "parallel gateway"

2) Using the multi-instance property available on UserTask

paiyyavj13
Star Contributor
Star Contributor

Hi Ciju,

Thanks for your response.... I did try this but I ave few queries...

I am using Alfresco Activiti application.

  1. On the submit form, I can add Group or Users... How can I add multiple Groups in the Form pallette?
  2. How to I store the group names in a variable? so that I can mention the variable name in Collection(Multi-Instance)
  3. under Assignment, what should I choose (I want multiple groups for parallel review, ideally a variable having all the groups)

Thanks in advance.

Regards.

gdharley
Elite Collaborator
Elite Collaborator

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:

Submit Form with Add Reviewers buttonAppreciate your help!!!

Regards.

gdharley
Elite Collaborator
Elite Collaborator

Ahh yes, you would need to create a custom Ui widget to select multiple people.

Creating custom form widgets is relatively straight forward, but requires a reasonable understanding of AngularJS.

Regards,

Greg

Thank you Greg.... let me look that up...

rachana
Champ in-the-making
Champ in-the-making

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.