Author: Kepion Product Team
SQL Rule messages can be very helpful to end users. They can be used to validate input parameters or to highlight issues for the user to see. You can define custom messages to return on Rule execution by using the SQL PRINT function. When users run the Rule, they will receive their message from a dialog window.
For example, the following message is returned when the Rule Top Down Allocation runs:
To configure a SQL Rule message, simply specify the message in a format similar to the following:
N'<INFO>Top down allocation completed'
N'<SUCCESS>Top down allocation completed'
N'<WARNING>Top down allocation encountered a warning on execution'
N'<ERROR>Top down allocation encountered an error on execution'
The <INFO>, <SUCCESS>, <WARNING>, and <ERROR> tags indicate the type of message that a user sees. In addition, any error messages that are encountered on Rule execution will stop any subsequent Rules, if any, from running.