[rules-users] Division Operator in a Rule Condition

skasab2s skasab2s at smail.inf.fh-brs.de
Sat Oct 3 10:44:28 EDT 2009


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. 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 correctly in a rule condition? 
> 
> Thanks a lot for any ideas!
> 
> skasab2s
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Division-Operator-in-a-Rule-Condition-tp25716712p25729442.html
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list