Interface RuleCompilerResultFactory
-
- All Known Implementing Classes:
DefaultRuleCompilerResultFactory
public interface RuleCompilerResultFactoryImplementations of this interface are responsible for creatingRuleCompilerResult.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RuleCompilerResultcreate(RuleCompilerResult compilerResult, long ruleVersion)Creates a result of rule compiler process based on the existing compiler result, decorating it with rule version information.RuleCompilerResultcreate(AbstractRuleModel rule, RuleCompilerResult.Result result, java.util.List<RuleCompilerProblem> problems)Creates a result of rule compiler process.RuleCompilerResultcreate(AbstractRuleModel rule, java.util.List<RuleCompilerProblem> problems)Creates a result of rule compiler process.
-
-
-
Method Detail
-
create
RuleCompilerResult create(AbstractRuleModel rule, RuleCompilerResult.Result result, java.util.List<RuleCompilerProblem> problems)
Creates a result of rule compiler process.- Parameters:
rule- - source rule entityresult- - enum: error or successproblems- - list of compilation problems- Returns:
- rule compiler result
-
create
RuleCompilerResult create(AbstractRuleModel rule, java.util.List<RuleCompilerProblem> problems)
Creates a result of rule compiler process. Based on problems, calculates if the compilation process was successful or not.- Parameters:
rule- - source rule entityproblems- - list of compilation problems- Returns:
- rule compiler result
-
create
RuleCompilerResult create(RuleCompilerResult compilerResult, long ruleVersion)
Creates a result of rule compiler process based on the existing compiler result, decorating it with rule version information.- Parameters:
compilerResult- - rule compiler resultruleVersion- - version of the compiled rule- Returns:
- rule compiler result
-
-