use of org.kie.dmn.core.impl.DMNRuntimeKB in project drools by kiegroup.
the class DMNKiePMMLTrustyInvocationEvaluator method getPMMLRuntime.
/**
* @param eventManager
* @return
*/
private PMMLRuntime getPMMLRuntime(DMNRuntimeEventManager eventManager) {
DMNRuntimeImpl dmnRuntime = (DMNRuntimeImpl) eventManager.getRuntime();
final DMNRuntimeKB runtimeKB = dmnRuntime.getRuntimeKB();
if (runtimeKB instanceof DMNRuntimeKBWrappingIKB) {
// We are in drools
return getPMMLRuntimeFromDMNRuntimeKBWrappingIKB((DMNRuntimeKBWrappingIKB) runtimeKB);
} else {
// we are in kogito
KieRuntimeFactory kieFactory = dmnRuntime.getKieRuntimeFactory(model);
return kieFactory.get(PMMLRuntime.class);
}
}
Aggregations