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

2010-02-24 Thread dhari
arefully. Assigning endDate attribute in a variable and not using > that variable in condition make no sense to me. > > Shabbir > > > >> Date: Wed, 24 Feb 2010 10:54:24 +0100 >> From: [hidden email] >> To: [hidden email] >> Subject: Re

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

2010-02-24 Thread Pavel Tavoda
@gmail.com >> To: rules-users@lists.jboss.org >> Subject: Re: [rules-users] Comparing Date with || OR operator >> >> What about: >>     Membership ( $regDate : regDate) >>     Segment ($endDate : endDate, startDate < $regDate || startDate > >> endDat

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

2010-02-24 Thread Shabbir Dhari
el.tav...@gmail.com > To: rules-users@lists.jboss.org > Subject: Re: [rules-users] Comparing Date with || OR operator > > What about: > Membership ( $regDate : regDate) > Segment ($endDate : endDate, startDate < $regDate || startDate > endDate ) > > Logically startDate

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

2010-02-24 Thread Pavel Tavoda
NOT work >     Membership ( $regDate : regDate) >     Segment ($endDate : endDate, startDate < $regDate || startDate > > $endDate ) > > > From: sdh...@hotmail.com > To: rules-users@lists.jboss.org > Date: Tue, 23 Feb 2010 23:09:50 + > Subj

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

2010-02-23 Thread Shabbir Dhari
es NOT work Membership ( $regDate : regDate) Segment ($endDate : endDate, startDate < $regDate || startDate > $endDate ) From: sdh...@hotmail.com To: rules-users@lists.jboss.org Date: Tue, 23 Feb 2010 23:09:50 + Subject: Re: [rules-users] Comparing Date with || OR operator

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

2010-02-23 Thread Shabbir Dhari
at org.drools.reteoo.ReteooStatelessSession.execute(ReteooStatelessSession.java:192) at au.gov.nsw.osr.zena.rules.AnnualRulesTester.main(AnnualRulesTester.java:57) > Date: Tue, 23 Feb 2010 12:54:46 +0100 > From: wolfgang.l...@gmail.com > To: rules-users@lists.jboss.org > Subject: Re: [rules-users] Comparing Date w

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

2010-02-23 Thread Wolfgang Laun
ate != null && startDate > endDate) ) > > And see whether you loose the NPE. > > > > Thomas > > > > From: [hidden email] [mailto:[hidden email]] On Behalf Of dhari > Sent: 23 February 2010 06:15 > To: [hidden email] > Subject: [rules-users] Comp

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

2010-02-23 Thread Swindells, Thomas
: Re: [rules-users] Comparing Date with || OR operator Hi Thomas Thanks your prompt reply. I am sure all three attributes are NOT null. I have tested them before sending question to mailing list. If you want, I can send complete sample code and you can try it at your end. Regards, Dhari

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

2010-02-23 Thread dhari
dDate) ) And see whether you loose the NPE. Thomas From: [hidden email] [mailto:[hidden email]] On Behalf Of dhari Sent: 23 February 2010 06:15 To: [hidden email] Subject: [rules-users] Comparing Date with || OR operator The following code generates NPE in ReteTuple.java rulew

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

2010-02-23 Thread Swindells, Thomas
.@lists.jboss.org] On Behalf Of dhari Sent: 23 February 2010 06:15 To: rules-users@lists.jboss.org Subject: [rules-users] Comparing Date with || OR operator The following code generates NPE in ReteTuple.java rule when Membership ( $regDate : regDate) Se

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

2010-02-22 Thread dhari
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 muc