Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.Ce contenu n'est pas disponible dans la langue sélectionnée.
3.10. Configuring Validation Rules
To configure a validation rule you need to specify the following:
- executeOn: this is the fragment on which the rule is to be executed.
- excecuteOnNS: this is the fragment namespace to which the
executeOn
belongs. - name: this is the name of the rule to be applied. This is a composite rule name that refers to a ruleBase and ruleName combination in a dot delimited format (in other words
ruleBaseName.ruleName
). - onFail: this determines the severity of a failed match.
Here is a sample validation rule configuration:
<validation:rule executeOn="order/header/email" name="regexAddressing.email" onFail="ERROR" />
<validation:rule executeOn="order/header/email" name="regexAddressing.email" onFail="ERROR" />