Support Article
quote function is used without using library name
SA-29531
Summary
The options are not popluated for few of the drop downs of ootb HTML Data-Portal .pyMyProcessActions (Bulk action) rule, hence the dropdown does not render any option for user to select from the screen.
Error Messages
Observed following error in log:
Please be more specific when calling this function by providing library and ruleset.
Steps to Reproduce
- Launch User portal
- Click process work tab
- Check “Bulk process by work type” dropdown, you will find no options to select.
Root Cause
A defect in Pegasystems’ code or rules :
User is calling pxGetAvailableWorkClasses activity to get workpool information and to populate thedropdown, HTML Data-Portal .pyMyProcessActions is used.
The issue is due to the errors thrown in the pxGetAvailableWorkClasses activity, the reason is @quote function is used in pxGetAvailableWorkClasses activity without a library name.
Full syntax for calling a function, Example- @(RuleSet:libraryname).functionname(arg1, arg2... argn) is to be used.
If changes are made to this in the actvity then it works as expected.
Resolution
Apply HFix-30166
Description of Changes:
Need to update step2 and step6 of pxGetAvailableWorkClasses activity to provide full namespace for quote function.
@(Pega-RULES:Default).quote(.pyRuleName)
@(Pega-RULES:Default).quote(.pyClassName)Tried to modify @(Pega-RULES:Default).quote(String)
@(Pega-RULES:Default).quote(.pyRuleName)
@(Pega-RULES:Default).quote(.pyClassName)Tried to modify @(Pega-RULES:Default).quote(String)
Additional Installation Instructions:
Logoff and login
Published October 27, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.