_The call builder.add never returns and doesn't throw an exception
either, it simply vanishes without any explanation._
Highly unlikely. You are probably getting a NPE in ExcelParser or a
FileNotFoundException but maybe not seeing the exception?
Also don't see where you build the KnowledgeBase in your pasted code. If
you can create a self-contained test that reproduces the error, please post.
Also these types of questions are for the rules-users list.
Tihomir
On 3/19/11 11:32 AM, gokhlaym wrote:
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.
_______________________________________________
rules-dev mailing list
rules-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev