Question
Citigroup Inc.
US
Last activity: 17 Sep 2019 0:39 EDT
Pega Utility Function: pzCanPerformAssignment
Hi
There is one utility function - pega_processengine_workutilities.pzCanPerformAssignment in a Pega control - pyAssignmentLabel. I am not able to find it in the search (may be its hidden).
I would like to understand more about this function and what it does? does it look for Roles or Privileges?
Can anyone provide insight about this function?
Thanks
Sreeram
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
US
Is this the one you are looking for?
Pegasystems Inc.
IN
pzCanPerformAssignment will check whether user has access to open the instances of pxObjClass or assignClass that has been passed on to ruf.
This rule looks up the assignment page and work page. It then sets parameters containing selected properties from the assignment. Then it calls haveAccess on the work page. If the RARO for that work type specifies an Access When for Perform Assignments access, then that Access When is invoked by the engine.
Citigroup Inc.
US
Thanks for the explanation! Can you please help me with the entire java code for this function?
Best regards,
Sreeram
Pegasystems Inc.
US
I can find out function, "pega_processengine_workutilities.pzCanPerformAssignment" on my Pega 7.4 system. See attached image #1.
Function Description: Determines if an assignment may be opened.
Function Usage: Callers of this function are OpenAndLockWork (to allow performing the assignment or not) and pyAssignmentsLabel (whether to show the assignment as a link or not).
I can find out function, "pega_processengine_workutilities.pzCanPerformAssignment" on my Pega 7.4 system. See attached image #1.
Function Description: Determines if an assignment may be opened.
Function Usage: Callers of this function are OpenAndLockWork (to allow performing the assignment or not) and pyAssignmentsLabel (whether to show the assignment as a link or not).
For "pyAssignmentsLabel" control, I find it under UI-Kit-7 ruleset on Pega 7.4 and Pega-EndUserUI ruleset on Pega 7.2.1. See image #2 and #3 below.
Control Description: displays instructions or Flow label
Control Usage: Used in Case Contents gadget to display instructions or Flow label
Citigroup Inc.
US
Thank you, Susan!
I am not able to find it even now. Can you please help me with the entire java code snippet for the function?
Thanks again!
Sreeram
PEG
GB
I don't think pz rules are returned by default.
If you want to see these as well (and assuming your search index is up-to-date), you can open your operator Preferences. At the end of this list there is an option to "Enable diagnostic features".
After switching this on, can you try searching for the rule again
Citigroup Inc.
US
Hi Laurence,
I tried by enabling the option " Enable diagnostic features" but still not able to view the pz rules.
Thanks,
Sreeram
Pegasystems Inc.
US
Do you have all the privileges to view the pz rules? Can you please check what access roles you have.
Citigroup Inc.
US
I think, I have all the privileges required to view pz rules.
Thanks for the help!