[rules-users] null checking

samd sdoyle_2 at yahoo.com
Thu Oct 16 13:29:17 EDT 2008


How do I evaluate null conditions in the following case for example?

seller: ( seller.cheese != null && seller.active == true )
cheese: ( cheese.type == "chedder" ) from seller.cheese

In the above example seller.cheese is null but seller is used in the second
part of the rule since we can't evaluate facts for null for some reason how
do you check for a null condition.

-- 
View this message in context: http://www.nabble.com/null-checking-tp20015953p20015953.html
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list