Interface RuleConditionValidator

  • All Known Implementing Classes:
    RuleContainerConditionTranslator, RuleExecutableConditionTranslator, RuleGroupConditionTranslator

    public interface RuleConditionValidator
    Implementations of this interface are responsible for validating a rule condition. Information on compilation problems is held in context RuleCompilerContext.

    If a compilation error occurs, creating and adding it to a context should normally use the following pattern:

     final RuleCompilerProblem ruleCompilerProblem = ruleCompilerProblemFactory.createProblem(Severity.ERROR, errorMessage);
     context.addProblem(ruleCompilerProblem);