[rules-users] Test for Empty String?

Jason Davidson jljdavidson at gmail.com
Wed Nov 4 18:48:30 EST 2009


Hello,

Is there an easy way to test if a String value is empty?  I've been doing
this (Drools 4.0.7):
    when CitationDTO
        (
            charge != null   &&
            charge.drivingIncidentLegalSpeedRate != null   &&
            charge.drivingIncidentLegalSpeedRate != ""
        )
    then ......

It seems like there has to be a better method.

Thanks,
Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20091104/5f4c9f07/attachment.html 


More information about the rules-users mailing list