How to Change a Restrictive Constraint Into a Warning Constraint

Previous Next

To change a restrictive constraint into a warning constraint:

1.Define a warning message, and optionally, a message category.
See: "How to Define Your Own System Messages".
2.Write the constraint as if it were a restrictive constraint, starting with a SELECT keyword.
Do NOT specify a constraint message: the component takes care of the message.
3.Replace the SELECT keyword with:

INVOKE    RulesEngine.MessageLanguage
WITH
SELECT    'message-category'
,         'message-name'
,         'WARNING' 
[ ,        'parameter-1', ... ]
 

where:

message-category is the category that the message belongs to.

message-name is the message name.

parameter-1, parameter-2, ... are optional message parameters.

If you want to provide an information message, change 'WARNING' into 'INFORMATION'.
4.Click the Check button to have your constraint checked.
5.Save your changes.

 

See Also

Warning Constraints