[rules-users] Decision table
Marcus Ilgner
marcus.ilgner at gmail.com
Fri Jul 11 05:14:40 EDT 2008
Hi Vanina,
On Thu, Jul 10, 2008 at 4:44 PM, Vanina Beraudo <vaninaberaudo at 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.html#d0e3787
You'll probably end up with something similar to this:
$t : Tax()
eval($t.taxValue($param1) < $param2)
Best regards
Marcus
More information about the rules-users
mailing list