Search in sources :

Example 1 with PMMLAssemblerService

use of org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService in project drools by kiegroup.

the class PMMLRuntimeFactoryInternal method getPMMLRuntime.

protected static PMMLRuntime getPMMLRuntime(File pmmlFile, KnowledgeBuilderImpl kbuilderImpl) {
    FileSystemResource fileSystemResource = new FileSystemResource(pmmlFile);
    new PMMLAssemblerService().addResourceAfterRules(kbuilderImpl, fileSystemResource, ResourceType.PMML, null);
    KieBase kieBase = createKieBase(kbuilderImpl);
    return getPMMLRuntime(kieBase);
}
Also used : KieBase(org.kie.api.KieBase) FileSystemResource(org.drools.core.io.impl.FileSystemResource) PMMLAssemblerService(org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService)

Aggregations

FileSystemResource (org.drools.core.io.impl.FileSystemResource)1 KieBase (org.kie.api.KieBase)1 PMMLAssemblerService (org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService)1