Information Technology Reference
In-Depth Information
The KIE base
A KIE base is a repository for a particular group of knowledge definitions. It will contain
rules, processes, functions, and type models. They don't contain data. Runtime environ-
ments are created from
KieBase
and wrapped in the
KieSession
objects. They're rep-
resented in the
kmodule.xml
file by the
kbase
tag. Constructing a
KieBase
reposit-
ory can be quite heavy, so if they're built programmatically, it's recommended to have them
cached. They can be obtained from
KieContainer
by getting the default KIE base:
KieBase kbase = kcontainer.getKieBase();
Alternatively, we can get a specific
KieBase
repository by name:
KieBase kbase = kcontainer.getKieBase("namedKieBase");