Support Article
Property-Ref method issue
SA-22959
Summary
User reported that Property-Ref method is utilizing CPU intensively.
Clipboard size is growing when property reference is used.
HasMessages has poor performance on heavier clipboard pages.
Error Messages
Not Applicable.
Steps to Reproduce
Use Page-Clear-Message and Property-Ref methods.
Root Cause
hasMessages() API is taking lot of time because of auto-populate chaining.
Refer below article for more details:
https://pdn.pega.com/support-articles/hasmessages-api-call-recalculateandsave-increases-cpu-usage
Resolution
Apply HFix-27388 to resolve the issue.
Hotfix includes the following changes:
1. Added a new DSS flag disableAutoPopulateForHasMessages .
2. In recalculateAndSave activity disabled autopopulate while calling hasMessages() and restore the previous value again after that based on the above flag.
3. Changed the hasMessages RUF to disable autopopulate and restore after that based on the above flag.
For the hotfix to take effect, create a DSS with name 'disableAutoPopulateForHasMessages' in 'Pega-RULES' ruleset and set it to 'true'.
Published August 1, 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.