use of org.drools.compiler.compiler.GuidedRuleTemplateProvider in project drools by kiegroup.
the class KnowledgeBuilderImpl method templateToPackageDescr.
PackageDescr templateToPackageDescr(Resource resource) throws DroolsParserException, IOException {
GuidedRuleTemplateProvider guidedRuleTemplateProvider = GuidedRuleTemplateFactory.getGuidedRuleTemplateProvider();
ResourceConversionResult conversionResult = guidedRuleTemplateProvider.loadFromInputStream(resource.getInputStream());
return conversionResultToPackageDescr(resource, conversionResult);
}
Aggregations