I have an interface class called "Constant" that I put all the constants in such as
in my rules, I have a lot of statements like
north == "Yes" && south == "Yes" && west == "Yes" && east == "Yes"
As you can see there are a lot of "Yes", I'd like to use the Constant class like so it's easy to change the values in the future if needed
$constant: Constant ( )
north == $constant.YES
Is that possible? If so
- Can I declare $constant: Constant ( ) variable at the top of the drl file and use it or I have to declare it in each rule?
- How can I insert the Interface class into the session?
Thanks