Support Article
GetRuleMessage function behavior incorrect
SA-91446
Summary
GetRuleMessage function returns a message rule name instead of a localized message. The localized message is rendered when the message is present in @baseclass.
Error Messages
Not Applicable
Steps to Reproduce
- Open a data transform or a decision table
- Click the Gear icon
- Perform a search for the GetRuleMessage function
- Pass Tools and message rule name. The localized message is not created
Root Cause
This behavior is as per the Pega product design. GetRuleMessage RUF works for rules defined in @baseclass by default.
Resolution
Perform the following local-change:Use pzGetRuleMessage RUF instead of GetRuleMessage.
Published October 18, 2019 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.