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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Dynamically populate Resource Pool: Workflow Task

Sha11
12-Amethyst

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

 

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

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

 

HelesicPetr
21-Topaz 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
12-Amethyst
(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
21-Topaz 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
12-Amethyst
(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
21-Topaz 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
12-Amethyst
(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.

 

 

Top Tags