Re: [rules-users] Division Operator in a Rule Condition

2009-10-03 Thread skasab2s
Thanks guys, it worked exactly this way, that you said: VpVentilation( $tidalVolume: tidalVolume, $breathingRate: breathingRate <= (105 * $tidalVolume)) Perfect! Best regards, skasab2s skasab2s wrote: > > Hello guys, > > I have this problem: > > I have an object A with fields b and c.

Re: [rules-users] Division Operator in a Rule Condition

2009-10-02 Thread Edson Tirelli
> > - Original Message > From: skasab2s > To: rules-users@lists.jboss.org > Sent: Friday, October 2, 2009 10:20:52 AM > Subject: [rules-users] Division Operator in a Rule Condition > > > Hello guys, > > I have this problem: > > I have an object A wit

Re: [rules-users] Division Operator in a Rule Condition

2009-10-02 Thread Greg Barton
Try wrapping it in parentheses: A ($b:b, $c:c, ($b/$c) <=105) - Original Message From: skasab2s To: rules-users@lists.jboss.org Sent: Friday, October 2, 2009 10:20:52 AM Subject: [rules-users] Division Operator in a Rule Condition Hello guys, I have this problem: I have

Re: [rules-users] Division Operator in a Rule Condition

2009-10-02 Thread Wolfgang Laun
Check the "Expert" manual. What you need here is a so-called "Return Value Restriction" where you relate a field and a parenthesized expression using a relational operator; i.e.: ( ) Therefore, $b/$c <= 105 is not correct, but $b <= ( 105*$c ) is (apart from possible truncation if $b and $c are

[rules-users] Division Operator in a Rule Condition

2009-10-02 Thread skasab2s
Hello guys, I have this problem: I have an object A with fields b and c. I have to check if b/c <= 105 (if the division of the both fields is less than 105). When I try the condition A ($b:b, $c:c, $b/$c <=105), I get the error message "No viable alternative for /". How to check this one cor