Hi,
I thought this worked for me at some point, but, I now seem to have lost my ability to get any debuggable DRL error contexts via the
–Ddrools.dump.dir property.
Here is my command line, that simply borrows from the DROOLs sample package’s Cheese.xls SpreadsheetCompiler example , to produce a .DRL from an (.XLS, .DRT) input pair:
java com.ms.fast.triclear.eligibility.rules.GenerateDRLfromEligibilityRulesRepoViaDRT \
-Ddrools.dump.dir=./DroolsDumpDir \
../main/packages/com/ms/fast/triclear/eligibility/rules/IRD_PRODUCT_RULES_FEED_TO_DRT_Template-BASIS.xls \
../main/packages/com/ms/fast/triclear/eligibility/rules/IRD_PRODUCT_RULES_TEMPLATE-BASIS.drt \
2>&1 | grep -v Picked | \
tee ../main/packages/com/ms/fast/triclear/eligibility/rules/IRD_PRODUCT_RULES=RENDERED.drl
This command line produces the following errors:
Error compiling resources:
[ERR 102] Line 923:0 mismatched input ''
[ERR 101] Line 8:60 no viable alternative at input '"LCH US"' in rule "IRD_PRODUCT_RULE_24"
[ERR 101] Line 46:60 no viable alternative at input '"LCH EU. SCM"' in rule "IRD_PRODUCT_RULE_23"
Parser returned a null Package
Exception in thread "main" java.lang.IllegalStateException: Error compiling resources
at com.ms.fast.triclear.eligibility.rules.GenerateDRLfromEligibilityRulesRepoViaDRT.buildKBase(GenerateDRLfromEligibilityRulesRepoViaDRT.java:93)
at com.ms.fast.triclear.eligibility.rules.GenerateDRLfromEligibilityRulesRepoViaDRT.execute(GenerateDRLfromEligibilityRulesRepoViaDRT.java:50)
at com.ms.fast.triclear.eligibility.rules.GenerateDRLfromEligibilityRulesRepoViaDRT.main(GenerateDRLfromEligibilityRulesRepoViaDRT.java:44)
Unfortunately, my ./DroolsDumpDir/ directory contents are completely empty. I was hopeful it might contain a staged .DRL context from which I could more easily debug my roadblock.
Is there more that I have to do, beyond just passing
–Ddrools.dump.dir=./DroolsDumpDir on the command line?
Ben D Cotton III
Morgan Stanley & Co.
OTC Derivatives Clearing Technology
1221 AOTA Rockefeller Ctr - Flr 27
New York, NY 10020
(212)762.9094
ben.cotton@ms.com