[rules-dev] Loading xls decisiontable in KnowledgeBuilder

gokhlaym madhav.gokhlay at gmail.com
Sat Mar 19 11:32:36 EDT 2011


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.


More information about the rules-dev mailing list