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-decisiontable-in-KnowledgeBuilder-tp2702371p2702371.html
Sent from the Drools - Dev mailing list archive at Nabble.com.
_______________________________________________
rules-dev mailing list
rules-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev

Reply via email to