Thank you Mike for the correction, yes I meant the DRL.

And your suggestion works! Thank you!

I'll update my toy project at https://github.com/ceefour/droolsnull :)

Thanks a lot!

Hendy

On Thu, Aug 16, 2012 at 2:04 AM, manstis [via Drools] <[hidden email]> wrote:
Hi,

I assume you mean Drools DRL (DSL is something different and none of your examples suggest use of this so far).

How about checking for the absence of the Double instead of it being null:-

when
    $product : Product( )
    not Double( ) from bookingService.getQty( $product )

I've not tried it personally.

With kind regards,

Mike

--
Hendy Irawan - on Twitter - on LinkedIn
Web Developer | Bippo Indonesia | Akselerator Bisnis | Bandung



View this message in context: Re: [rules-users] How to check if a property IS null ?
Sent from the Drools: User forum mailing list archive at Nabble.com.