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);
-
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(RuleCompilerContext context, RuleActionData action, RuleActionDefinitionData actionDefinition) Validates a rule action.
-
Method Details
-
validate
void validate(RuleCompilerContext context, RuleActionData action, RuleActionDefinitionData actionDefinition) Validates a rule action.- Parameters:
context- - the compiler contextaction- - the actionactionDefinition- - the action definition
-