Rule statements and Rule messages in Corticon.js
- Last Updated: February 23, 2021
- 1 minute read
- Corticon.js
- Documentation
In Studio you can add rule statements to rules. Rule statements allow you to add a message to individual rules that will be returned with the result payload from a call to the decision service. Rule statements allow you to capture "why" a decision was made. They are often used to debug rules or to capture an audit trail. Example:
When these rules execute, they produce the corresponding types of rule messages:
Configuration
Each of the target platform wrappers provide the information for
implementing and managing rule messaging, as shown:
|
Setting a configuration
The syntax of a configuration might look like
this when we want to suppress violation messages, and put messages in the log:
|