Thanks a lot
On Thu, May 2, 2013 at 3:17 PM, laune [via Drools] <
If you import a class
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
On 2 May 2013 21:47, Roopa <[hidden
> 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
> public static final double
> ORDER_AMOUNT_FOP_REVIEWED_ADD_TO_EXISTING_ORDER_TIER1 = 100000;
> How to access this variable in the drl file.
> Since its not an instance variable of that class, even if I insert as a
> "fact", unable to access the variable in drl file.
> I can very well use the constant value directly in the drl file, but
> to know.
> Please do suggest me some options available.
> View this message in context:
> Sent from the Drools: Developer (committer) mailing list mailing list
> archive at Nabble.com
> rules-dev mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4023647&i=1>
rules-dev mailing list
[hidden email] <http://user/SendEmail.jtp?type=node&node=4023647&i=2>
If you reply to this email, your message will be added to the discussion
To unsubscribe from Access a static variable from Java file to DRL File, click
Sent from the Drools: Developer (committer) mailing list mailing list archive at