I may be wrong, but that rule syntax looks off. Does it compile? This is
what I imagine u are trying to do
$seller : Seller(cheese != null and active == true)
Cheese(type == "chedder") from $seller.cheese
On Thu, Oct 16, 2008 at 1:29 PM, samd <sdoyle_2(a)yahoo.com> wrote:
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.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users