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
@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
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
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
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
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
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
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
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
.@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
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
11 matches
Mail list logo