<font size=2 face="sans-serif">Hello Wolfgang,</font>
<br>
<br><font size=2 face="sans-serif">I am going to include my project team
members Tom, Lauren, and Graham on this as they are also helping me with
this and might have a different question to ask of you that might help
us.</font>
<br>
<br><font size=2 face="sans-serif">Thanks for your continued help with
this.</font>
<br>
<br><font size=2 face="sans-serif">Nancy</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">Wolfgang Laun &lt;wolfgang.laun@gmail.com&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">To: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">Rules Users List &lt;rules-users@lists.jboss.org&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">02/09/2012 11:50 AM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">Re: [rules-users]
Low Date question in drools</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Sent by: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">rules-users-bounces@lists.jboss.org</font>
<br>
<hr noshade>
<br>
<br>
<br><font size=3>Yes, it's strange.&nbsp;</font>
<br>
<br><font size=3>Now, if there is a Person object person and you have,
for instance,</font>
<br><font size=3>&nbsp; &nbsp;person.setDateOfBirth( new Date( -1899, 0,
1 ) ) &nbsp;</font>
<br><font size=3>then the rule for matching this oldster would be</font>
<br><font size=3>&nbsp; &nbsp;rule &quot;Methuselah&quot;</font>
<br><font size=3>&nbsp; &nbsp;when</font>
<br><font size=3>&nbsp; &nbsp; &nbsp; $p: Person( dateOfBirth == &quot;1-Jan-1&quot;
)</font>
<br><font size=3>&nbsp; &nbsp;then</font>
<br><font size=3>&nbsp; &nbsp; &nbsp; ...</font>
<br>
<br><font size=3>The Date constructor adds 1900 to the year.&nbsp;</font>
<br>
<br><font size=3>-W</font>
<br>
<br>
<br>
<br><font size=3>2012/2/9 Nancy Henggeler &lt;</font><a href=mailto:Nancy.Henggeler@fblfinancial.com target=_blank><font size=3 color=blue><u>Nancy.Henggeler@fblfinancial.com</u></font></a><font size=3>&gt;</font>
<br><font size=3 face="sans-serif">It is a java date. &nbsp;We use some
java binding objects to build it. &nbsp;Below is just a sampling of this.
&nbsp;The second entry below indicates what to name it in Java, it's java
type, what DB2 table (cogentTable) and data field it is coming from (cogentField).
&nbsp;The snippets below might not help much.</font><font size=3> <br>
<br>
</font><font size=3 face="Courier New"><br>
1) bindHistory((ECDField) object.getElement(&quot;dateOfBirth&quot;), this.getDateOfBirthHistory());</font><font size=3>
<br>
</font><font size=3 face="Courier New"><br>
2) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;attribute
name=&quot;dateOfBirth&quot;&gt;</font><font size=3> </font><font size=3 face="Courier New"><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &lt;type&gt;Date&lt;/type&gt;</font><font size=3> </font><font size=3 face="Courier New"><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &lt;cogenTable&gt;W1V0&lt;/cogenTable&gt;</font><font size=3> </font><font size=3 face="Courier New"><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &lt;cogenField&gt;BIRTH-DATE&lt;/cogenField&gt;</font><font size=3>
</font><font size=3 face="Courier New"><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &lt;description&gt;Date Of Birth&lt;/description&gt;</font><font size=3>
</font><font size=3 face="Courier New"><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/attribute&gt;</font><font size=3>
</font>
<br><font size=3><br>
<br>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
From: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 face="sans-serif">Wolfgang
Laun &lt;</font><a href=mailto:wolfgang.laun@gmail.com target=_blank><font size=1 color=blue face="sans-serif"><u>wolfgang.laun@gmail.com</u></font></a><font size=1 face="sans-serif">&gt;</font><font size=3>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
To: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 face="sans-serif">Rules
Users List &lt;</font><a href="mailto:rules-users@lists.jboss.org" target=_blank><font size=1 color=blue face="sans-serif"><u>rules-users@lists.jboss.org</u></font></a><font size=1 face="sans-serif">&gt;</font><font size=3>
</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">02/09/2012 11:00 AM</font><font size=3>
</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">Re: [rules-users] Low
Date question in drools</font><font size=3> </font><font size=1 color=#5f5f5f face="sans-serif"><br>
Sent by: &nbsp; &nbsp; &nbsp; &nbsp;</font><a href="mailto:rules-users-bounces@lists.jboss.org" target=_blank><font size=1 color=blue face="sans-serif"><u>rules-users-bounces@lists.jboss.org</u></font></a><font size=3>
<br>
</font>
<hr noshade><font size=3><br>
<br>
<br>
So what is the Java type of dateOfBirth, please? <br>
-W<br>
<br>
2012/2/9 Nancy Henggeler &lt;</font><a href=mailto:Nancy.Henggeler@fblfinancial.com target=_blank><font size=3 color=blue><u>Nancy.Henggeler@fblfinancial.com</u></font></a><font size=3>&gt;
</font><font size=3 face="sans-serif"><br>
Hello Laun,</font><font size=3> </font><font size=3 face="sans-serif"><br>
<br>
Thank you for your quick response. &nbsp;This date is a date coming from
a DB2 date field and is valid in my incoming data. &nbsp;Frankly, I am
with you, why not null versus a silly low date as such, arggggh. &nbsp;But
since it is coming in as such do you know of a work around?</font><font size=3>
</font><font size=3 face="sans-serif"><br>
<br>
Thank so much,</font><font size=3> </font><font size=3 face="sans-serif"><br>
Nancy</font><font size=3> <br>
<br>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
<br>
From: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 face="sans-serif">Wolfgang
Laun &lt;</font><a href=mailto:wolfgang.laun@gmail.com target=_blank><font size=1 color=blue face="sans-serif"><u>wolfgang.laun@gmail.com</u></font></a><font size=1 face="sans-serif">&gt;</font><font size=3>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
To: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 face="sans-serif">Rules
Users List &lt;</font><a href="mailto:rules-users@lists.jboss.org" target=_blank><font size=1 color=blue face="sans-serif"><u>rules-users@lists.jboss.org</u></font></a><font size=1 face="sans-serif">&gt;</font><font size=3>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
Date: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 face="sans-serif">02/09/2012
10:31 AM</font><font size=3> </font><font size=1 color=#5f5f5f face="sans-serif"><br>
Subject: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 face="sans-serif">Re:
[rules-users] Low Date question in drools</font><font size=3> </font><font size=1 color=#5f5f5f face="sans-serif"><br>
Sent by: &nbsp; &nbsp; &nbsp; &nbsp;</font><a href="mailto:rules-users-bounces@lists.jboss.org" target=_blank><font size=1 color=blue face="sans-serif"><u>rules-users-bounces@lists.jboss.org</u></font></a><font size=3>
<br>
</font>
<hr noshade><font size=3><br>
<br>
<br>
Why would you want to test for January 1st in year 1? This is not a <br>
value an object of type java.util.Date can represent. See that type's <br>
javadoc for details, but the epoch begins January 1, 1970. <br>
<br>
-W <br>
<br>
<br>
On 9 February 2012 17:19, Nancy Henggeler &lt;</font><a href=mailto:nancy.henggeler@fblfinancial.com target=_blank><font size=3 color=blue><u>nancy.henggeler@fblfinancial.com</u></font></a><font size=3>&gt;
wrote: <br>
I have a simple rule where I want to bypass elements that have a low date
but<br>
drools seems to be interpreting the date different then I am expecting.<br>
Drools statement and error follows:<br>
<br>
ClientSupplement ( dateOfBirth : dateOfBirth != null &amp;&amp; != 0001-01-01)<br>
<br>
throws error -- Error: [Error: badly formatted number: For input string:<br>
&quot;001-01-01&quot;] [Near : {... 0001-01-01 ....}] ^ [Line: 1, Column:
1]<br>
<br>
How do I get drools to &nbsp;understand this low date? &nbsp;I have tried
single,<br>
double, and no quotes around the low date and all result in a similiar
error<br>
message. &nbsp;Please Help!</font><font size=3 color=#8f8f8f><br>
<br>
--<br>
View this message in context: </font><a href="http://drools.46999.n3.nabble.com/Low-Date-question-in-drools-tp3729940p3729940.html" target=_blank><font size=3 color=blue><u>http://drools.46999.n3.nabble.com/Low-Date-question-in-drools-tp3729940p3729940.html</u></font></a><font size=3 color=#8f8f8f><br>
Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list</font><font size=3 color=blue><u><br>
</u></font><a href="mailto:rules-users@lists.jboss.org" target=_blank><font size=3 color=blue><u>rules-users@lists.jboss.org</u></font></a><font size=3 color=blue><u><br>
</u></font><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target=_blank><font size=3 color=blue><u>https://lists.jboss.org/mailman/listinfo/rules-users</u></font></a><font size=3>
</font><tt><font size=3><br>
_______________________________________________<br>
rules-users mailing list</font></tt><font size=3 color=blue><u><br>
</u></font><a href="mailto:rules-users@lists.jboss.org" target=_blank><tt><font size=3 color=blue><u>rules-users@lists.jboss.org</u></font></tt></a><font size=3 color=blue><u><br>
</u></font><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target=_blank><tt><font size=3 color=blue><u>https://lists.jboss.org/mailman/listinfo/rules-users</u></font></tt></a>
<table>
<tr>
<td bgcolor=white><tt><font size=3>The information contained in this message
may be privileged and confidential and protected from disclosure. If you
are<br>
not the intended recipient of this message, you are hereby notified that
any dissemination, distribution, or copying of this<br>
communication is strictly prohibited. If you have received this communication
in error, please notify us immediately by<br>
replying to the message, and please delete it from your computer.</font></tt></table>
<br><font size=3><br>
<br>
_______________________________________________<br>
rules-users mailing list</font><font size=3 color=blue><u><br>
</u></font><a href="mailto:rules-users@lists.jboss.org" target=_blank><font size=3 color=blue><u>rules-users@lists.jboss.org</u></font></a><font size=3 color=blue><u><br>
</u></font><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target=_blank><font size=3 color=blue><u>https://lists.jboss.org/mailman/listinfo/rules-users</u></font></a><font size=3><br>
</font><tt><font size=3><br>
_______________________________________________<br>
rules-users mailing list</font></tt><tt><font size=3 color=blue><u><br>
</u></font></tt><a href="mailto:rules-users@lists.jboss.org" target=_blank><tt><font size=3 color=blue><u>rules-users@lists.jboss.org</u></font></tt></a><font size=3 color=blue><u><br>
</u></font><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target=_blank><tt><font size=3 color=blue><u>https://lists.jboss.org/mailman/listinfo/rules-users</u></font></tt></a><font size=3><br>
</font>
<table>
<tr>
<td bgcolor=white><tt><font size=3>The information contained in this message
may be privileged and confidential and protected from disclosure. If you
are<br>
not the intended recipient of this message, you are hereby notified that
any dissemination, distribution, or copying of this<br>
communication is strictly prohibited. If you have received this communication
in error, please notify us immediately by<br>
replying to the message, and please delete it from your computer.<br>
</font></tt></table>
<br><font size=3><br>
_______________________________________________<br>
rules-users mailing list</font><font size=3 color=blue><u><br>
</u></font><a href="mailto:rules-users@lists.jboss.org" target=_blank><font size=3 color=blue><u>rules-users@lists.jboss.org</u></font></a><font size=3 color=blue><u><br>
</u></font><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target=_blank><font size=3 color=blue><u>https://lists.jboss.org/mailman/listinfo/rules-users</u></font></a><font size=3><br>
</font>
<br><tt><font size=2>_______________________________________________<br>
rules-users mailing list<br>
rules-users@lists.jboss.org<br>
</font></tt><a href="https://lists.jboss.org/mailman/listinfo/rules-users"><tt><font size=2>https://lists.jboss.org/mailman/listinfo/rules-users</font></tt></a><tt><font size=2><br>
</font></tt>
<br>

<table><tr><td bgcolor=#ffffff><font color=#000000><pre>The information contained in this message may be privileged and confidential and protected from disclosure. If you are
not the intended recipient of this message, you are hereby notified that any dissemination, distribution, or copying of this
communication is strictly prohibited. If you have received this communication in error, please notify us immediately by
replying to the message, and please delete it from your computer.
</pre></font></td></tr></table>