Skip to main content
15-Moonstone
January 3, 2023
Question

About role assignment in participants

  • January 3, 2023
  • 2 replies
  • 945 views

Since the participants of each section are different, I have to create the same flow many times when assigning a task. Can I do this with a single flow by assigning a role to the participants?

sections:

smcvr_0-1672730618663.png

 

flow in them:

smcvr_1-1672730639079.png

 

2 replies

avillanueva
23-Emerald I
23-Emerald I
April 28, 2023

Short answer is yes. I have done with using role variables. You would need to put some code logic ahead of it that adjust the roles or team of the PBO before it sends it to the task but I have avoided the complexity you show in that first image. It is just a single task with multiple people on it.

18-Opal
April 28, 2023

@avillanueva is correct. So are you @smcvr .

 

Use a team role and populate the role with the appropriate principals using logic.

 

I see in your first image there’s a conditional that has 15 routing options.

Is this simply a matter of using the logic in that conditional to determine which principals should be in which role(s)?

 

If yes, you’re pretty much there.

I’d replace the conditional with an expression robot and use the logic to populate the team role rather than determine a routing option.

 

Whats the code in the conditional look like?