Dynamically populate Resource Pool: Workflow Task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Labels:
-
General Customization
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
This is possible with customization. @d_graham built something for me that does something very similar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I tried the below API to update the resource pool of a role, but no luck so far.
TeamHelper.service.addRoleMap(role,user,team)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
