Search in sources :

Example 1 with GuidedRuleTemplateProvider

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);
}
Also used : ResourceConversionResult(org.drools.compiler.compiler.ResourceConversionResult) GuidedRuleTemplateProvider(org.drools.compiler.compiler.GuidedRuleTemplateProvider)

Aggregations

GuidedRuleTemplateProvider (org.drools.compiler.compiler.GuidedRuleTemplateProvider)1 ResourceConversionResult (org.drools.compiler.compiler.ResourceConversionResult)1