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:
/*
	*******************************************************
	Configuration Properties for Rule Messages
	*******************************************************
	*/
	const configuration = {
		logLevel: 0,
		ruleMessages: {
			 executionProperties: {
				restrictInfoRuleMessages: true, 
				// If true Restricts Info Rule Messages
				restrictWarningRuleMessages: true, 
				// If true Restricts Warning Rule Messages
				restrictViolationRuleMessages: true, 
				// If true Restricts Violation Rule Messages
				
				restrictResponseToRuleMessagesOnly: true, 
				// If true the response returned has only rule messages
			},
		},
	};*/

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:
const configuration = {logLevel:0,ruleMessages: {restrictViolationRuleMessages:true,logRuleMessages:true} };