cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Translate the entire conversation x

Dynamically populate Resource Pool: Workflow Task

Sha11
14-Alexandrite

Dynamically populate Resource Pool: Workflow Task

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

 

9 REPLIES 9
TomU
23-Emerald IV
(To:Sha11)

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

 

HelesicPetr
22-Sapphire II
(To:Sha11)

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

Sha11
14-Alexandrite
(To:HelesicPetr)

@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.

HelesicPetr
22-Sapphire II
(To:Sha11)

Hi @Sha11 

so you are going to have 70 values in your parameter to define what team should be used as the Resource Pool?

 

and there could be 70 groups of users so you need to manage that groups? 

 

PetrH

Sha11
14-Alexandrite
(To:HelesicPetr)

Hello @HelesicPetr ,

 

I am going to have 7 different location values and I have totally 10 tasks getting triggered to different roles, say Mechanical Engineer, Electrical Engineer and so on. Depending on the location, the resource pool of a set-up participant task should be updated with a group. For example, if the user has selected Spain, for ME role, there would be a group called Spain_ME, the said group should be added as a resource pool. Hope this gives you a better clarity on my requirement.

HelesicPetr
22-Sapphire II
(To:Sha11)

Hi @Sha11 

I understand and I would say that I showed you the easiest way without deep coding.

 

I can imagine that you can setup the Resource pool by code but I've never needed so I can't show you an example.

 @d_graham may can >D

 

PetrH

Sha11
14-Alexandrite
(To:HelesicPetr)

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

 

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

 

Yes, I have done this before.  I just look into my toolbox to refresh my memory.

It's doable, for sure.

You can both add and remove resource pools on the fly using APIs.

 

The request I had several years ago was to set resource pool based on an attribute value in the PBO.

 

It's tricky for sure, but doable.

 

 

Hello @d_graham ,

 Could you please share the API's which you have used to dynamically add/remove resource pools of a workitem based on attribute value?

I also have very similar requirement as @Sha11 , where I need to set resource pool for a task (workitem) of a running workflow based on variables set in the previous workitem.

Announcements
Top Tags