cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to validate Rule Conditions during parameter editing

Former Member
470

Hybris has a number of validation tables (e.g. NotNullConstraint) which can be edited from the Backoffice using [System > Validation > Constraints] from the sidebar menu, or using Impex, that can apply info, warning or error validation messages during data entry on many of the screens.

However, it seems that when you go to [Marketing > Promotion Rules], load a rule and go to the "Conditions and Actions" tab, these validation rules cannot be applied because the Rules Engine uses a different mechanism. Instead you can apply either a ValidateInterceptor which checks the values during Save and only handles errors (and cannot give warnings or info messages), or a RuleParameterValidator which only checks during publishing of the promotion.

Any tips or references to documentation would be welcome.

Accepted Solutions (0)

Answers (0)