Posted: 28 Sep 2016 11:52 EDT Last activity: 11 Nov 2016 23:37 EST
Workgroup details need to update when user switches apps
We have a requirement where we need to update the user's WorkGroup settings when he/she switches applications.Is this something which is achievable and if at all what could be the best approach of achieving the same?
Please update in case any of you have experience in hand!
***Updated by Moderator: Marissa. Removed user added #helpme group tag. Apologies for confusion, shouldn't have been an end-user option*** ***Added SR Details***
I will provide a bit more details on what we are trying to achieve.
The business users in our Application stack will have access to 3 different applications. Each of this application needs to be mapped to different WorkGroups so that the portal shows the appropriate workbaskets when the user chooses to switch applications.
Essentially what this means is, we will have a business rule to track the application mapping to workgroups (this piece of info will be coming in from the client) and trigger this business rule when we use the Switch Apps functionality. How does this sound to you?
In case you need more inputs, I shall be more than happy to share more details.
We have tried by adding an event to the Navigation rule (Run Data Transform) and tried to update the value OperatorID.pyWorkGroup depending on the name of the current application. But this appraoch not helping us much
When exactly you are calling the data transform? are you able to get the current instance of Data-Admin-Operator-ID? since I am not sure you can that from a Data transform itself as you need to do an obj-open for current instance of D-A-O-ID, atleast you need to have pzinskey of that operator to do obj-open-by-handle.
Posted: 4 years ago
Posted: 11 Nov 2016 23:37 EST
Bhattacharyya Pinaki (PinakiBhattacharya)
Bank of Nova Scotia
Pega Certified Lead System Architect
Bank of Nova Scotia
There is a concept of Active Workgroup When the user logs in. In clipboard you can find a page called pyDisplayHarness and inside that Page the active workgroup of the user resides. This basically happens when the operator logs into Pega.
You can override this during login of your application. Save the pyDefault in Data-Portal (if i am not mistaking this is the class ) and change the active workgroup there. you will notice that this will override the workgroup that you have in your operator ID. This is runtime changing of workgroup when someone logs in.
You can also change the workgroup when you log in by introducing a gadget within your portal just force a refresh and the workgroup will be changed.
Honestly, Pega's workbasket and Workgroup still bothers me :) ...Let me know if this Helps.