<div dir="ltr"><br>&nbsp;&nbsp; Hehe, never underestimate creativity... :) nice solution.<br><br>&nbsp;&nbsp; []s<br>&nbsp;&nbsp; Edson<br><br><div class="gmail_quote">2008/7/31 Greg Barton <span dir="ltr">&lt;<a href="mailto:greg_barton@yahoo.com">greg_barton@yahoo.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Never underestimate the value of data structures.<br>
Give LabResult a pointer to the next (or previous)<br>
LabResult. &nbsp;Then the rule becomes more comprehensible:<br>
<br>
$l1 : LabResult( value &lt; 1, eval( inLastMonth(date) )<br>
$l2 : LabResult( value &lt; 1, eval( inLastMonth(date),<br>
next == $l1 )<br>
$l3 : LabResult( value &lt; 1, eval( inLastMonth(date),<br>
next == $l2 )<br>
<br>
It&#39;s also more easily extensible to longer sequences.<br>
<font color="#888888"><br>
GreG<br>
</font><div><div></div><div class="Wj3C7c"><br>
<br>
<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> JBoss Drools Core Development<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>
</div>