[rules-users] "not matches'' not working when string is null

Edson Tirelli tirelli at post.com
Mon Mar 2 13:27:31 EST 2009


    A null value on the field is supposed to evaluate to true only when
comparing with null. Otherwise, it should always evaluates to false.

    []s
    Edson

2009/3/2 techy <techluver007 at gmail.com>

>
> Hello,
> I'm checking for condition ' field not matches ".*ABC.*" ` in my rule.
> when field value is null, rule does not fire. But if field value != null
> and
> != ABC, then rule fires.
> Is this expected output or bug? Please clarify.
>
> Thanks
>
> --
> View this message in context:
> http://www.nabble.com/%22not-matches%27%27-not-working-when-string-is-null-tp22292620p22292620.html
> Sent from the drools - user mailing list archive at Nabble.com.
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
 Edson Tirelli
 JBoss Drools Core Development
 JBoss, a division of Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090302/0d2576a5/attachment.html 


More information about the rules-users mailing list