Class DroolsRuleValidateInterceptor

java.lang.Object
de.hybris.platform.droolsruleengineservices.interceptors.DroolsRuleValidateInterceptor
All Implemented Interfaces:
Interceptor, ValidateInterceptor<DroolsRuleModel>

public class DroolsRuleValidateInterceptor extends Object implements ValidateInterceptor<DroolsRuleModel>
Validates the DroolsRule item type. Validations are described below and can be disabled by setting the respective property to false: Check that DroolsRule.code doesn't contain double-quote (") and that @ruleCode meta-data is present in DroolsRule.drl and matches DroolsRule.code: droolsruleengineservices.validate.droolsrule.rulecode Check that @moduleName meta-data is present in DroolsRule.drl and matches AbstractRulesModule.name: droolsruleengineservices.validate.droolsrule.rulecode Check for DroolsRule.uuid doesn't contain double-quote(") and that it matches the DroolsRule.drl rule declaration ( using double-quotes around the rule, e.g. rule "this is the rule uuid"): droolsruleengineservices.validate.droolsrule.rulename Check that DroolsRule.rulePackage attribute (if set) matches the package declaration in the DroolsRule.drl content: droolsruleengineservices.validate.droolsrule.rulepackage