[rules-users] How to check if a property IS null ?

Hendy Irawan hendy at soluvas.com
Wed Aug 15 15:11:00 EDT 2012


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] <
ml-node+s46999n4019156h99 at n3.nabble.com> 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 <http://twitter.com/hendybippo> - on
LinkedIn<http://id.linkedin.com/in/hendyirawan>
Web Developer | Bippo Indonesia <http://www.bippo.co.id/> | Akselerator
Bisnis | Bandung




--
View this message in context: http://drools.46999.n3.nabble.com/How-to-check-if-a-property-IS-null-tp4019014p4019157.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120815/d2a96070/attachment.html 


More information about the rules-users mailing list