Information Technology Reference
In-Depth Information
The
RuntimeManager
implementation will return a specific runtime engine, depending
on the
RuntimeManager
type and the
Context
parameter we pass to it:
RuntimeManager manager = ...;
RuntimeEngine engine = manager.getRuntimeEngine(
EmtpyContext.get());
Once we receive a
RuntimeEngine
instance, we will be able to interact with its sub-
components using the following options:
• We can use the KIE session to start processes, fire rules, and send signals. The
code is as follows:
engine.getKieSession().startProcess("procId");
engine.getKieSession().fireAllRules();
engine.getKieSession().signalEvent("signalX", null);