cancel
Showing results for 
Search instead for 
Did you mean: 

Parallel Multi Instance Dynamic Task Candidate Group Assignment

davedavedave
Champ on-the-rise
Champ on-the-rise

I'm trying to make a parallel multi-instance task that is assigned to a dynamic amount of candidate groups. I have the candidate groups' apsIds in a Collection, but I want each multi-instance task assigned to only one group of the list (so each group has to finish the task once). How do I set up the assignment of the task?

1 ACCEPTED ANSWER

abbask01
Star Collaborator
Star Collaborator

Hi Dave,

  1. Select Multi-Instance type to Parallel.
  2. Set Collection to the name variable that holds the list of groups to be assigned.
  3. Set Element variable (e.g. group_to_be_assigned), this varible holds the current item in the list
  4. Use your Element variable in Task Assignment using el. click on task Assignment > goto fixed values > in Candidate groups > add ${group_to_be_assigned} 

Hope it helps.

Regards,
Abbas

View answer in original post

3 REPLIES 3

abbask01
Star Collaborator
Star Collaborator

Hi Dave,

  1. Select Multi-Instance type to Parallel.
  2. Set Collection to the name variable that holds the list of groups to be assigned.
  3. Set Element variable (e.g. group_to_be_assigned), this varible holds the current item in the list
  4. Use your Element variable in Task Assignment using el. click on task Assignment > goto fixed values > in Candidate groups > add ${group_to_be_assigned} 

Hope it helps.

Regards,
Abbas

Thanks for your reply, I worked around it with a task listener but your solution is way better and cleaner. Tested it and it works like a charm!

EddieMay
World-Class Innovator
World-Class Innovator

Hi @davedavedave 

Thanks for updating your post & accepting the solution provided by @abbask01 - really helpful to other users.

Cheers,

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!
Getting started

Explore our Alfresco products with the links below. Use labels to filter content by product module.