Search in sources :

Example 1 with GuidedDecisionTableProvider

use of org.drools.compiler.compiler.GuidedDecisionTableProvider in project drools by kiegroup.

the class KnowledgeBuilderImpl method guidedDecisionTableToPackageDescr.

PackageDescr guidedDecisionTableToPackageDescr(Resource resource) throws DroolsParserException, IOException {
    GuidedDecisionTableProvider guidedDecisionTableProvider = GuidedDecisionTableFactory.getGuidedDecisionTableProvider();
    ResourceConversionResult conversionResult = guidedDecisionTableProvider.loadFromInputStream(resource.getInputStream());
    return conversionResultToPackageDescr(resource, conversionResult);
}
Also used : GuidedDecisionTableProvider(org.drools.compiler.compiler.GuidedDecisionTableProvider) ResourceConversionResult(org.drools.compiler.compiler.ResourceConversionResult)

Aggregations

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