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

2010-02-24 Thread Pavel Tavoda
)     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 Segment ( $endDate : endDate

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

2010-02-24 Thread Shabbir Dhari
...@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 endDate doesn't make sense but it should work

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

2010-02-24 Thread Pavel Tavoda
Subject: Re: [rules-users] Comparing Date with || OR operator What about:     Membership ( $regDate : regDate)     Segment ($endDate : endDate, startDate $regDate || startDate endDate ) Logically startDate endDate doesn't make sense but it should work ;-) Pavel 2010/2/24 Shabbir Dhari sdh

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

2010-02-24 Thread dhari
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: [rules-users] Comparing Date with || OR operator What about: Membership ( $regDate : regDate

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

2010-02-23 Thread Swindells, Thomas
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) Segment ( startDate $regDate || startDate

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

2010-02-23 Thread dhari
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 rulewhen Membership ( $regDate

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 Wolfgang Laun
:[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 rule    when   Membership ( $regDate : regDate)   Segment ( startDate

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 with || OR operator Please

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

2010-02-23 Thread Shabbir Dhari
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 Segment ( $endDate

[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 much