Interface RuleActionValidator

  • All Known Implementing Classes:
    RuleExecutableActionTranslator

    public interface RuleActionValidator
    Implementations of this interface are responsible for validating a rule action. 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);