此内容没有您所选择的语言版本。
3.15. Types of Validation
Smooks performs two types of validation using two different kinds of validation rules:
- message field value/format validation using regular expressions defined in a
.propertiesfile RuleBase. This, for example, can be to validate a field as being a valid e-mail address. - business rules validation using MVEL expressions defined in a
.csvfile RuleBase. This can, for example, be validating that the total price of an order item on an order (price * quantity) does not breach some predefined business rule.