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(a)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-tp40...
Sent from the Drools: User forum mailing list archive at
Nabble.com.