Is there is anyway i can remove hardcoded values in the DRL file? Can I have
the constants file(like data dictionary) inside drl/functions. I don't want
to refer java constants class directly in drl file and would like to declare
and refer those constants inside drl file.
View this message in context: http://www.nabble.com/remove-hardcoded-values-in-DRL-or-have-constants-in...
Sent from the drools - user mailing list archive at Nabble.com.
I am fairly new to Drools and am just getting my feet wet with writing
In my work, I have to integrate drools with classes that do not expose all
properties via getXXX/ isXXX accessor methods but require a call of the form
someMethod("keyvalue"). I have been using the MVEL dialect and do not see a
way to call a function with arguments on the LHS side of a rule either in
the documentation or the mailing list.
In fact, I have been trying something like
$d: VO( computePrice("key") < 10) from entry-point "Inventory
This fails with a 'no viable alternative at input '"key"' in rule. Is there
a way this can be accomplished?