use of org.drools.compiler.builder.impl.errors.MissingImplementationException in project drools by kiegroup.
the class KnowledgeBuilderImpl method templateToPackageDescr.
PackageDescr templateToPackageDescr(Resource resource) throws DroolsParserException, IOException {
GuidedRuleTemplateProvider guidedRuleTemplateProvider = GuidedRuleTemplateFactory.getGuidedRuleTemplateProvider();
if (guidedRuleTemplateProvider == null) {
throw new MissingImplementationException(resource, "drools-workbench-models-guided-template");
}
ResourceConversionResult conversionResult = guidedRuleTemplateProvider.loadFromInputStream(resource.getInputStream());
return conversionResultToPackageDescr(resource, conversionResult);
}
Aggregations