[rules-users] Decision table

Vanina Beraudo vaninaberaudo at gmail.com
Fri Jul 11 09:17:00 EDT 2008


Thanks Marcus,

eval was the solution



2008/7/11 Marcus Ilgner <marcus.ilgner at gmail.com>:
> 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
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
Lic. Vanina Beraudo



More information about the rules-users mailing list