Class KieBaseCompilerImpl
java.lang.Object
ch.tocco.nice2.optional.drools.impl.KieBaseCompilerImpl
- All Implemented Interfaces:
KieBaseCompiler
-
Constructor Summary
ConstructorDescriptionKieBaseCompilerImpl
(org.slf4j.Logger log, RunEnvironmentService runEnvironmentService) -
Method Summary
Modifier and TypeMethodDescriptionorg.kie.api.KieBase
compile
(String subjectName, Iterable<RuleSource> sources) Compile a package for the specified subject from the given knowledge sources.void
void
setSubjects
(List<Subject> subjects)
-
Constructor Details
-
KieBaseCompilerImpl
-
-
Method Details
-
setSubjects
-
setSubjectExtensions
@Autowired(required=false) public void setSubjectExtensions(List<Subject.SystemRuleExtension> rules) -
compile
public org.kie.api.KieBase compile(String subjectName, Iterable<RuleSource> sources) throws CompileException Description copied from interface:KieBaseCompiler
Compile a package for the specified subject from the given knowledge sources. It uses all system rules and the specified custom rules to build the knowledge base.- Specified by:
compile
in interfaceKieBaseCompiler
- Parameters:
subjectName
- The subject.sources
- The knowledge sources.- Returns:
- A knowledge base.
- Throws:
CompileException
- If an compile error occurs.
-