use of org.drools.compiler.compiler.PMMLResource in project drools by kiegroup.
the class PMML4Compiler method precompile.
public List<PMMLResource> precompile(String fileName, ClassLoader classLoader, KieBaseModel rootKieBaseModel) {
InputStream is = getInputStreamByFileName(fileName);
List<PMMLResource> resources = null;
if (is != null) {
try {
resources = precompile(is, classLoader, rootKieBaseModel);
} catch (Exception e) {
PMMLError err = new PMMLError("Unable to retrieve pre-compiled resources for PMML: " + e.getMessage());
this.results.add(err);
}
}
return (resources != null) ? resources : Collections.emptyList();
}
Aggregations