[rules-users] Arithmetic operator in Condition part (Argent help.....)
Andreas Langegger
andreas.langegger at gmx.at
Wed Feb 13 05:24:10 EST 2008
hi,
On Feb 13, 2008, at 6:46 AM, Nikhil_dev wrote:
> when
> $a : ApplyRuleBean()
> m : ApplyRuleBean ( ($a.AdultFare - $a.InfantFare) <
> ($a.ChildFare
> + $a.InfantFare) )
> then
> $a.GrossFare = ($a.ChildFare * 500);
> end
shouldn't you take care to call update() when modifying $a ?
http://downloads.jboss.com/drools/docs/4.0.4.17825.GA/html/ch06s05.html#d0e4123
At least if you don't disable shadowing, I guess
can somebody comment on this (I'm new to drools)
Best regards,
Andy
More information about the rules-users
mailing list