Class RequirementEvaluationFactoryImpl
java.lang.Object
ch.tocco.nice2.optional.educationrequirement.impl.requirementevaluation.RequirementEvaluationFactoryImpl
- All Implemented Interfaces:
RequirementEvaluationFactory
@Component
public class RequirementEvaluationFactoryImpl
extends Object
implements RequirementEvaluationFactory
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRequirementEvaluationFactoryImpl
(KieBaseCompiler kieBaseCompiler, CommandExecutor commandExecutor, EntityFactFactory entityFactFactory, EntitiesContextFactory entitiesContextFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
compileRequirementRule
(Entity requirementRule) compile a rule to check for compilation errorscreateRequirementEvaluation
(Entity entity) setup a requirement evaluation to be used for running the rules on a entity
-
Field Details
-
MODE
-
-
Constructor Details
-
RequirementEvaluationFactoryImpl
public RequirementEvaluationFactoryImpl(KieBaseCompiler kieBaseCompiler, CommandExecutor commandExecutor, EntityFactFactory entityFactFactory, EntitiesContextFactory entitiesContextFactory)
-
-
Method Details
-
createRequirementEvaluation
Description copied from interface:RequirementEvaluationFactory
setup a requirement evaluation to be used for running the rules on a entity- Specified by:
createRequirementEvaluation
in interfaceRequirementEvaluationFactory
- Parameters:
entity
- the entity to load the rules for- Returns:
- the readied evaluation
- Throws:
CompileException
-
compileRequirementRule
Description copied from interface:RequirementEvaluationFactory
compile a rule to check for compilation errors- Specified by:
compileRequirementRule
in interfaceRequirementEvaluationFactory
- Parameters:
requirementRule
- the entity to pull the rules from- Throws:
CompileException
- any error that happened during compilation
-