Question
Optus
AU
Last activity: 4 Oct 2018 13:54 EDT
Route assignment to workbasket or worklist based on condition.
Hi Team,
We need route an assignment to worklist or workbasket based on a condition. We can achieve this scenario by creating two assignments one of type worklist and another of type workbasket and then evaluate condition in decision shape based on the O/P an assignment will be created of type worklist or workbasket.
But this approach leads to duplicating of assignments, is there any way to achieve this scenario without duplicating the assignments.
Thank you.
***Updated by Moderator: Marissa to update categories***
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
FR
Hello,
In the past we used to have a parameter called "Param.SwitchToWorkBasket". So in your flow configuration, the assignment must be prepared to be a WorkList and if needed on your activity, you set the parameter to true. But I guess the approach might be different depending on your version of PRPC.
Tech Mahindra
IN
Pass the name of WL/WB dynamicaly. Use an activity for the same.
Optus
AU
Hi Abishek,
Thanks for the reply, if possible can you elaborate the steps to pass the WL or WB dynamically.
For assignment of type worklist, if you pass workbasket name as parameter (Param.AssignTo) it will throw run time exception and vice versa.
Accepted Solution
Pegasystems Inc.
FR
Hello,
In the past we used to have a parameter called "Param.SwitchToWorkBasket". So in your flow configuration, the assignment must be prepared to be a WorkList and if needed on your activity, you set the parameter to true. But I guess the approach might be different depending on your version of PRPC.
-
phani deepika
Optus
AU
Hi Lassm,
It worked. Thank you :)
Galaxe Solutions
US
Hi Lassm,
Is this solution will work in pega 7.1?
Delta Dental of California
US
Well it will be something like this based on WL/WB
Param.AssignTo = pxRequestor.pyUserIdentifier
Param.IsWorkList="true"
-------WL--
Param.AssignTo = Param.AssignedOperator
Param.SwitchToWorkbasket = "true"
Galaxe Solutions
US
How to implement this in Pega 7? since we have only option to select either Workbasket/Worklist in Custom.
Pegasystems Inc.
IN
In Pega 7, we can implement in the same way. In assignment shape choose routing as "Custom" and "WorkList". Write your custom router activity similar to below. Step 1 executes if AssignmentType is "WorkList" and step 2 if AssignmnetType is "WorkBasket"
-
Uthpala Karunagama murali jillellamudi
TATA Consultancy Services Ltd
IN
Will I have to write a when rule to decide which step to execute?Suppose I took a assignment shape and declare its type="WorkList".Then on a custom routing activity writing only above mentioned 2 Property-Set steps
1) Param.AssignTo =” work basket name” and Param.SwitchToWorkbasket = "true”
2) Param.AssignTo = pxRequestor.pyUserIdentifier and Param.IsWorkList="true"
will redirect the work object to WL/WB dynamically by specifying this activity on that assignments "Routing" tab .How this will happen pls explain in detail.
-
Uthpala Karunagama MOUNICASITA KANCHARLAPALLY Tom Zhang Priyanka Venugopalreddy Aditya Boggarapu and 4 More
Stellantis
IN
Thanks it is working fine.
1986
US
It worked in 7.2.2 as well.
Thanks,
Stellantis
IN
This screen short is very help full and with this solution my functionality is working fine.