This class is my internal tool for generating a .DRL from (.XLS,.DRT) input pairs. It follows the DROOLs 5.4 Cheese.xls sample in section 4.7 of the Expert white paper.
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Wolfgang Laun Sent: Monday, November 19, 2012 1:10 PM To: Rules Users List Subject: Re: [rules-users] expectation for -Ddrools.dump.dir to show DRL error context .. This package/class name doesn't ring a bell: com.ms.fast.triclear.eligibility.rules.GenerateDRLfromEligibilityRulesRepoViaDRT How does it handle command line arguments? -W On 19/11/2012, Cotton, Ben <[email protected]> wrote: > 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.GenerateDRLfromEligibilityRules > RepoViaDRT > \ > -Ddrools.dump.dir=./DroolsDumpDir \ > > ../main/packages/com/ms/fast/triclear/eligibility/rules/IRD_PRODUCT_RU > LES_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_RU > LES=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.GenerateDRLfromEligibilityRules > RepoViaDRT.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 > [email protected]<mailto:[email protected]> > > > > > ________________________________ > > NOTICE: Morgan Stanley is not acting as a municipal advisor and the > opinions or views contained herein are not intended to be, and do not > constitute, advice within the meaning of Section 975 of the Dodd-Frank > Wall Street Reform and Consumer Protection Act. If you have received > this communication in error, please destroy all electronic and paper > copies and notify the sender immediately. Mistransmission is not > intended to waive confidentiality or privilege. Morgan Stanley > reserves the right, to the extent permitted under applicable law, to > monitor electronic communications. This message is subject to terms available > at the following link: > http://www.morganstanley.com/disclaimers If you cannot access these > links, please notify us by reply message and we will send the contents > to you. By messaging with Morgan Stanley you consent to the foregoing. > _______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users -------------------------------------------------------------------------------- NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: http://www.morganstanley.com/disclaimers. If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing. _______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
