[rules-users] checking for complex conditions

2008-03-04 Thread Jai Vasanth
Hi, Suppose I have a class Foo with integers a, b and c ( methods getA getB and getC respectively ) and I Want to check if an object of Foo satisfies a - (b + c) 0 Is this the best way I go about doing this ? rule Foo check when Foo( varA : a , varB:b, varC:c ) eval(

Re: [rules-users] checking for complex conditions

2008-03-04 Thread Edson Tirelli
Jai, You can try: rule Foo check with inline eval when Foo( eval( a - (b + c) 0 ) ) then do actions end Or, what is better IMO: rule Foo check with return value predicate when Foo( a ( b + c ) ) then do actions end Hope it