Where do you have problems? date-effective and date-expired simply delimit the time interval when a rule is capable of firing.<br><br>If you have a field of type Date in a fact you can base your rule on this value being before, equal to or after some other Date value in another fact, or a literal, written as a quoted string. All relational operators are applicable, with the natural interpretation.<br>
<br>-W<br><br><br><div class="gmail_quote">On 19 August 2011 15:53, dhartford <span dir="ltr">&lt;<a href="mailto:binarymonk01@yahoo.com">binarymonk01@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hey all,<br>
I see a couple of posts in the mailing list/forum around the date-effective<br>
and date-expired.<br>
<br>
Forgive my ignorance, I&#39;m still learning as I go, but I have this example<br>
and I&#39;m wondering if that is where I should look, or if that is the wrong<br>
path:<br>
<br>
Given the mortgage example, lets say you have LoanApplications come in with<br>
an &#39;Application Date&#39;.<br>
<br>
There may be one rule that has 3 different versions (all versions &#39;active&#39;)<br>
depending on the date of the application, and the application may come in<br>
later, and/or a rule may be a retroactive rule (I just made a new rule, but<br>
it came into effect two days ago (say during a weekend and is only for those<br>
two days), so any ApplicationDate based loan applications that show up on<br>
Monday with dates from the past two days should use that retroactive rule<br>
instead of, potentially, a new &#39;current&#39; rule).<br>
<br>
This is not the same as history (what *was* the rule(s) as of prior Friday),<br>
which is also important, which is why I&#39;m asking if someone has tackled this<br>
area that will help someone new understand the best approach for date-based<br>
rules while understanding/retaining history.<br>
<br>
thanks!<br>
-Darren<br>
<font color="#888888"><br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Rule-s-based-on-different-fact-dates-date-effective-date-expired-tp3268114p3268114.html" target="_blank">http://drools.46999.n3.nabble.com/Rule-s-based-on-different-fact-dates-date-effective-date-expired-tp3268114p3268114.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br>