Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Standard functions for messages

Updated on August 10, 2022

You can use standard functions to evaluate messages in your application. By understanding the errors and warnings that are associated with your application, you can debug issues quickly and improve your guardrail compliance score.

The following standard functions are supported:

  • getRuleMessage(tools, messageName) — Returns the localized text of a message.

  • pyGetUnlocalizedRuleMessage(className, ruleMessageName) — Returns the original text of the message.

  • hasMessages(stepPage) — Determines whether a clipboard page has messages associated with it.

  • hasMessagesOnGivenProperty(myStepPage, myPropertyReference) — Determines whether a property has messages associated with it.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us