Information Technology Reference
In-Depth Information
The KIE container
The KIE container provides an accessory to utilize the KIE module. It will provide version-
ing and building through maven, and you can dynamically update the version of a KIE con-
tainer to work with other KIE modules.
From inside the KIE container, we will have access to the knowledge definitions and
runtimes defined for each KIE module:
KieContainer kcontainer = ks.newKieContainer(
kmodule.getReleaseId());
You can also get the container from the current project classpath:
KieContainer defaultKcontainer =
ks.getKieClasspathContainer();
Then, you can get the default knowledge definitions and runtimes from the container:
//Getting default knowledge definitions from the container
KieBase kbase = Kcontainer.getKieBase();
//Creating knowledge runtimes directly from the container
KieSession ksession = Kcontainer.newKieSession();
Search WWH ::




Custom Search