use of org.kie.api.internal.io.ResourceTypePackage in project drools by kiegroup.
the class DMNRuntimeImpl method getModel.
@Override
public DMNModel getModel(String namespace, String modelName) {
InternalKnowledgePackage kpkg = (InternalKnowledgePackage) runtime.getKieBase().getKiePackage(namespace);
if (kpkg == null) {
return null;
}
Map<ResourceType, ResourceTypePackage> map = kpkg.getResourceTypePackages();
DMNPackage dmnpkg = (DMNPackage) map.get(ResourceType.DMN);
return dmnpkg != null ? dmnpkg.getModel(modelName) : null;
}
Aggregations