// Convert this into a (POI) Workbook
HSSFWorkbook wb = new HSSFWorkbook(new POIFSFileSystem(inputFromExcel));
// Convert the cell
RangeHolder ranges = RangeConvertor.convertExcelToCells(wb);
HashMap<String, Object> globals = new HashMap<String, Object>();
// Create a new Excel Logging object
SpreadSheetLogger excelLogger = new SpreadSheetLogger();
// Log the cell contents
log.debug("============ Excel Cell Contents In =========");
for (Range r : ranges) {
log.debug(r);
}
// Set Paramaters
RuleSource ruleSource = new RuleSource();
ruleSource.setDslFileLocation(DSL_FILE);
ruleSource.setRulesLocation(RULES_FILES);
ruleSource.setFacts(ranges.getAllRangesAndCells());
ruleSource.setGlobals(globals);
// Load and fire our rules files against the data
new RuleRunner(new FileRuleLoader()).runStatelessRules(ruleSource,excelLogger);