Re: [rules-dev] Access a static variable from Java file to DRL File

2013-05-02 Thread Roopa
Laune. It Worked Thanks a lot On Thu, May 2, 2013 at 3:17 PM, laune [via Drools] < ml-node+s46999n402364...@n3.nabble.com> wrote: > If you import a class >import a.b.c.Const > you can use its statics in the usual way, e.g., Const.ORDER_AM > > There's also an import static, which should let

Re: [rules-dev] Access a static variable from Java file to DRL File

2013-05-02 Thread Wolfgang Laun
If you import a class import a.b.c.Const you can use its statics in the usual way, e.g., Const.ORDER_AM There's also an import static, which should let you omit the class name import static a.b.c.Const.ORDER_AM but this might only work for static methods (at least, it did, some versions ago)

Re: [rules-dev] Access a static variable from Java file to DRL File

2013-05-02 Thread Roopa
Hi, I am a newbie to Drools. Can anyone give me some inputs on 1) How to access a static variable constant from java file into drl file. say a static constant is declared in a java file VCRuleServiceConstants.java public static final double ORDER_AMOUNT_FOP_REVIEWED_ADD_TO_EXISTING_ORDER_TIER1 =