<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Yes, the accumulate function itself should maintain the sort internally.<div><br></div><div>@OlliSee :&nbsp;See the thread titled "<span class="Apple-style-span" style="font-family: arial, helvetica, clean, sans-serif; color: rgb(63, 63, 63); font-weight: bold; line-height: 15px; ">How to write a rule that fires when it matches against specific facts in working memory."</span></div><div><br>--- On <b>Sun, 1/30/11, Wolfgang Laun <i>&lt;wolfgang.laun@gmail.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Wolfgang Laun &lt;wolfgang.laun@gmail.com&gt;<br>Subject: Re: [rules-users] Writing a pattern in which each event constraint depends on the previous event<br>To: "Rules Users List" &lt;rules-users@lists.jboss.org&gt;<br>Date: Sunday, January 30, 2011, 10:25 AM<br><br><div
 id="yiv852010541"><br><br><div class="yiv852010541gmail_quote">On 30 January 2011 12:55, OlliSee <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:o.roess@seeburger.de" target="_blank" href="/mc/compose?to=o.roess@seeburger.de">o.roess@seeburger.de</a>&gt;</span> wrote:<br><blockquote class="yiv852010541gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex;">
<br>
@Wolfgang: I guess you are referring to the list I use. Of course I expect<br>
them to be ordered by timestamp.<br></blockquote><div><br><br>You sure do, but the question is whether you get them in this order during processing by accumulate. There is no documentation that accumulate passes through a set of selected facts in the order they were inserted. It could just as well be the (random) order of some hash key, or reverse, or whatever.<br>
<br>-W<br><br>&nbsp;</div><blockquote class="yiv852010541gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex;">
<font color="#888888">--<br>
View this message in context: <a rel="nofollow" target="_blank" href="http://drools-java-rules-engine.46999.n3.nabble.com/Writing-a-pattern-in-which-each-event-constraint-depends-on-the-previous-event-tp2370165p2383235.html">http://drools-java-rules-engine.46999.n3.nabble.com/Writing-a-pattern-in-which-each-event-constraint-depends-on-the-previous-event-tp2370165p2383235.html</a><br>

Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a rel="nofollow" ymailto="mailto:rules-users@lists.jboss.org" target="_blank" href="/mc/compose?to=rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a rel="nofollow" target="_blank" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br>
</div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>rules-users mailing list<br><a ymailto="mailto:rules-users@lists.jboss.org" href="/mc/compose?to=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></blockquote></div></td></tr></table><br>