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

Wolfgang Laun wolfgang.laun at gmail.com
Fri Aug 3 08:22:15 EDT 2012


Works for me.

You'll have to provide a *complete* example, Java and DRL to reproduce
the effect you are describing.

-W


On 03/08/2012, Hendy Irawan <hendy at soluvas.com> wrote:
> I'm trying to check if property is null, but the rule is never fired :
>
> Sample :
>
> rule "Cancel"
>     when
>         $action				: CancelProductBookingDetail( created == null )
>     then
>
> end
>
> (created is of type java.util.Date)
>
> Any help is appreciated.
>
> Hendy
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/How-to-check-if-a-property-IS-null-tp4019014.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>


More information about the rules-users mailing list