I am trying to load an xls decision table as below. The call builder.add
never returns and doesn't throw an exception either, it simply vanishes
without any explanation.
Any tips are appreciated.
try {
DecisionTableConfiguration dtConf =
KnowledgeBuilderFactory.newDecisionTableConfiguration();
dtConf.setInputType(DecisionTableInputType.XLS);
dtConf.setWorksheetName("Sheet1");
builder = KnowledgeBuilderFactory.newKnowledgeBuilder();
Resource r = ResourceFactory.newUrlResource(
"file:///C:/PatternSpy/RulesTester/monitorRule.xls");
System.out.println("About to add xls resource to builder");
builder.add(r, ResourceType.DTABLE, dtConf);
System.out.println("Loaded xls resource to builder");
} catch (Exception e) {
e.printStackTrace();
throw e;
}
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Loading-xls-decisiont...
Sent from the Drools - Dev mailing list archive at
Nabble.com.