Posted: 31 Aug 2016 8:11 EDT Last activity: 4 Oct 2018 13:54 EDT
Route assignment to workbasket or worklist based on condition.
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.
***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.
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.
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"
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.