Managing Master Data with webMethods OneData 10.5 | Managing Master Data with webMethods OneData | Implementing webMethods OneData | Data Validation in OneData | Data Validation Using the Rules Engine | Validation and Action Rules
 
Validation and Action Rules
Validation and action rules are configured with logical expressions. You can configure IF THEN conditions for both validation and action rules. OneData executes the next action indicated if the condition is met.
*Validation Rules. Confirms the validity of data.
Set up validation rules using IF THEN conditions. During data entry or updates, if an IF THEN condition is violated, OneData displays a violation message.
For example, in the Employee table, if Employee Hire Date must be less than Employee Retirement Date, create the validation rule:
IF %Employee.Employee Retirement Date% is NOT_NULL, THEN %Employee.Employee Hire Date% < %Employee.Employee Retirement Date%.
*Action Rules. Triggers an action if the conditions are met.
Set up action rules using IF THEN conditions. During data entry or updates, if the condition is met, OneData performs the action specified in the THEN statement.
For example, in a Employee table, to create an action rule that if the Employee Hire Date occurs before 1/1/2007, assign 15 days to Vacation Time, use the following expression:
IF %Employee.Employee Hire Date% < 2007-01-01 00:00:00

Copyright © 2011-2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.