use of org.kie.pmml.evaluator.api.container.PMMLPackage in project drools by kiegroup.
the class PMMLRuntimeFactoryInternal method getNestedKiePackages.
protected static List<KiePackage> getNestedKiePackages(final InternalKnowledgePackage kiePackage, final KieBase kieBase) {
PMMLPackage pmmlPackage = (PMMLPackage) kiePackage.getResourceTypePackages().get(ResourceType.PMML);
final Map<String, KiePMMLModel> kiePmmlModels = pmmlPackage.getAllModels();
final List<KiePackage> toReturn = new ArrayList<>();
populateNestedKiePackageList(kiePmmlModels.values(), toReturn, kieBase);
return toReturn;
}
Aggregations