SpreadsheetCompiler compiler = new SpreadsheetCompiler();
String drl = compiler.compile("/rules/CreditRules.xls", InputType.XLS);
System.out.println("DRL String:"+drl);
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
kbuilder.add(new ClassPathResource("/rules/CreditRules.xls", getClass()), ResourceType.DTABLE, dtableconfiguration);
KnowledgeBuilderErrors errors = kbuilder.getErrors();
if (errors.size() > 0) {
for (KnowledgeBuilderError error : errors) {
System.err.println(error);
}