Understanding action statements
Action statements are entered as part of a Rule Set (RST). An action statement identifies an action that is required, and may be linked to the results of one or more condition statements.
For example, a business rule is required to ensure that a product code is always entered in Ledger Analysis 5. In this simple case the IF condition statement checks the value in the Ledger Analysis 5 field, and if the value is blank the resulting action displays an error message.
The rule set condition and action statements would look like this, where the DISPLAY command line is the action statement and decision column 1 links the condition result and the required action:
Command | Value 1 | Operator | Value 2 | Decision Col 1 |
IF | Ledger Analysis 5 | = | SPACE | Y |
DISPLAY | ProductCodeMissingErrorMessage | X |
An action statement always includes a Command, and Value 1. It may also contain an Operator and Value 2 depending on the command.