Interface KieBaseCompiler

All Known Implementing Classes:
KieBaseCompilerImpl

public interface KieBaseCompiler
Compiles a `KnowledgeBase` by aggregating system and custom rules.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.kie.api.KieBase
    compile(String subject, Iterable<RuleSource> sources)
    Compile a package for the specified subject from the given knowledge sources.
  • Method Details

    • compile

      org.kie.api.KieBase compile(String subject, Iterable<RuleSource> sources) throws CompileException
      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.
      Parameters:
      subject - The subject.
      sources - The knowledge sources.
      Returns:
      A knowledge base.
      Throws:
      CompileException - If an compile error occurs.