use of org.drools.scorecards.parser.xls.XLSScorecardParser in project drools by kiegroup.
the class ScorecardCompiler method compileFromExcel.
public boolean compileFromExcel(final InputStream stream, final String worksheetName) {
try {
AbstractScorecardParser parser = new XLSScorecardParser();
scorecardErrors = parser.parseFile(stream, worksheetName);
if (scorecardErrors.isEmpty()) {
pmmlDocument = parser.getPMMLDocument();
return true;
}
} catch (ScorecardParseException e) {
logger.error(e.getMessage(), e);
} finally {
closeStream(stream);
}
return false;
}
Aggregations