[rules-users] errors compiling resources (returns a null package)
lhorton
LHorton at ABCLegal.com
Mon Oct 29 16:05:28 EDT 2012
I haven't worked with Templates, but I have seen this type of error when
compiling XLS to DRL. The line and column numbers refer to the generated
DRL. For spreadsheet debugging, I use code like this:
DecisionTableConfiguration dtconf =
KnowledgeBuilderFactory.newDecisionTableConfiguration();
dtconf.setInputType(DecisionTableInputType.XLS);
String drlString =
DecisionTableFactory.loadFromInputStream(ResourceFactory.newFileResource(path).getInputStream(),
dtconf);
and then look at the generated drlString at the line number cited in the
exception, to find the offending rule.
--
View this message in context: http://drools.46999.n3.nabble.com/rules-users-errors-compiling-resources-returns-a-null-package-tp4020530p4020540.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
More information about the rules-users
mailing list