Skip to main content
14-Alexandrite
February 16, 2023
Question

Dynamically populate Resource Pool: Workflow Task

  • February 16, 2023
  • 2 replies
  • 2628 views

Hello,

 

I have a requirement where I need to populate the Resource pool of a workflow task based on an attribute, say location, selected by the user at the time of creating a Change Notice. For example, if the user has selected the location as Spain, the resource pool of a set-up participant task should be updated with Spain group for a role. Requesting you to provide some info on the feasibility to implement the same.

 

Thanks,

Sha

 

2 replies

23-Emerald IV
February 16, 2023

This is possible with customization.  @d_graham built something for me that does something very similar.

 

HelesicPetr
22-Sapphire II
22-Sapphire II
February 17, 2023

Hi @Sha11 

There are many ways how to achieve what you need.

 

One option is to create a tasks with your specific participant teams one task for one team

create a conditional route where simple java code checks a value of the parameter and goes to the correct task with right team based on the value.

 

also there can be other way how to do it.

 

PetrH

Sha1114-AlexandriteAuthor
14-Alexandrite
February 17, 2023

@HelesicPetr ,

 

The way that you mentioned will not work for me, I have multiple teams for various tasks, if I am to follow that way I would have to introduce 70 workflow tasks. Looking for some way to customize the same.

Sha1114-AlexandriteAuthor
14-Alexandrite
February 20, 2023

I tried the below API to update the resource pool of a role, but no luck so far.

 

TeamHelper.service.addRoleMap(role,user,team)