Search in sources :

Example 1 with DecisionTableParser

use of org.drools.decisiontable.parser.DecisionTableParser in project drools by kiegroup.

the class ExternalSpreadsheetCompiler method compile.

public void compile(final InputStream xlsStream, InputType type, final List<DataListener> listeners) {
    final DecisionTableParser parser = type.createParser(listeners);
    parser.parseFile(xlsStream);
    closeStream(xlsStream);
}
Also used : DecisionTableParser(org.drools.decisiontable.parser.DecisionTableParser)

Example 2 with DecisionTableParser

use of org.drools.decisiontable.parser.DecisionTableParser in project drools by kiegroup.

the class ExternalSpreadsheetCompiler method compile.

public void compile(final InputStream xlsStream, final Map<String, List<DataListener>> listeners) {
    final DecisionTableParser parser = new ExcelParser(listeners);
    parser.parseFile(xlsStream);
    closeStream(xlsStream);
}
Also used : DecisionTableParser(org.drools.decisiontable.parser.DecisionTableParser) ExcelParser(org.drools.decisiontable.parser.xls.ExcelParser)

Aggregations

DecisionTableParser (org.drools.decisiontable.parser.DecisionTableParser)2 ExcelParser (org.drools.decisiontable.parser.xls.ExcelParser)1