Standard functions for messages
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.
Previous topic Displaying a warning message in a rule Next topic Updating legacy messages and related rules