[rules-users] Comparing Date with || OR operator

dhari sdhari at hotmail.com
Tue Feb 23 01:15:08 EST 2010


The following code generates NPE in ReteTuple.java 

rule 
	when
              Membership ( $regDate : regDate)
              Segment ( startDate < $regDate || startDate > endDate )
        then
	     System.err.print(“Invalid start date”);
end


I am new in Drools and don’t know much about DRL scripting. It works fine I
use && operator instead.
-- 
View this message in context: http://n3.nabble.com/Comparing-Date-with-OR-operator-tp347656p347656.html
Sent from the Drools - User mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100222/dc6db21e/attachment.html 


More information about the rules-users mailing list