Hi Vanina,
On Thu, Jul 10, 2008 at 4:44 PM, Vanina Beraudo <vaninaberaudo(a)gmail.com> wrote:
Hello,
I need use a excel Decision table, in the CONDITION I invoque a
method, not a getter, and this method have a parameter. I dont know
how is the correct way to call a method with a parameter in CONDITION
part.
I do this,
CONDITION
i:Tax
taxValue("$1") < $2
10, 20
Could somebody give some idea how can I call a method with parameters?
Thanks,
Have a look at the eval expression documented in
http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/html_single/index.h...
You'll probably end up with something similar to this:
$t : Tax()
eval($t.taxValue($param1) < $param2)
Best regards
Marcus