OneData 10.7 | Managing Master Data with webMethods OneData | Implementing webMethods OneData | Data Validation in OneData | Data Validation Using the Rules Engine | Configuring Validation and Action Rules in the Rules Engine
 
Configuring Validation and Action Rules in the Rules Engine
The following table compares validation and action rules for IF THEN statements.
Condition
Validation
Action
IF
Logical expression
Logical expression
THEN
Logical expression
Action (assignment)
The rules engine executes the:
*Validation rule when there are changes to the columns in either the IF statement or THEN statement (inserts/updates).
*Action rule when there is a change to the columns in the IF statement (inserts/ updates).
*To configure validation/action rules in rules engine
1. On the Menu toolbar, click Define > Configuration > Rules Engine.
2. Click Add New Rule.
3. Enter the following Rule Details:
Rule Detail
Description
ID
ID of the rule. OneData internally generated the ID.
Name
Name of the rule.
Type
Type of the rule - Validation or Action.
Validation Message
Message shown when a user violates the validation rule.
Disabled
Whether to disable the rule.
4. Click Update Rule to save the details.
5. Enter the Rule Steps as described in the following table.
Step Detail
Description
Delete
Icon to delete the rule step.
Condition Type
IF or THEN
#
Step number in the rule.
Left Logical Operator
Logical operator applied.
Left Parenthesis
Open parenthesis that is part of the condition.
Left Expression
Expression on the left side of the Operator.
Operator
Operator applied to check the expression.
Right Expression
Expression on the right side of the Operator.
Right Parenthesis
Close parenthesis that is part of the condition.
Right Logical Operator
Logical operator applied.
6. Click Update Rule to add next step.
7. To save the entire rule, click Update Rule after the last step is added.