<br>   Are you running in STREAM or CLOUD mode? What clock are you using? Are you timestamping the events or are you using the clock to timestamp them?<br><br>   Edson<br><br><div class="gmail_quote">2009/12/14 Khalil Hafsi <span dir="ltr">&lt;<a href="mailto:hafsi@fzi.de">hafsi@fzi.de</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;">Hi Guys,<br>
<br>
I was working lately with drools fusion, we wanted to know what event<br>
consumption policy was implemented.<br>
We made the following simple rule :<br>
<br>
rule a<br>
<br>
    when<br>
        $c1 : Event(symbol == 1 , $l1 :load) from entry-point &quot;mainS&quot;<br>
         and<br>
        $c2 : Event(this after $c1,symbol == 2,$l2 :load) from<br>
entry-point &quot;mainS&quot;<br>
<br>
    then<br>
        System.out.println(&quot;event1 &quot;+$l1+&quot; event2 &quot;+$l2);<br>
<br>
end<br>
<br>
The event class has just symbol : int and load : int , load is used to<br>
differentiate between different events that have the same symbol.<br>
<br>
and then we declared the following events into the stream using the<br>
constructor Event(symbol,load): with mainS being a WorkingMemoryEntrypoint<br>
<br>
            mainS.insert(new Event(1,10.0));<br>
            mainS.insert((new Event(1,20.0)));<br>
            mainS.insert((new Event(1,30.0)));<br>
            mainS.insert(new Event(2,80.0));<br>
            mainS.insert(new Event(2,90.0));<br>
<br>
<br>
We have the following output :<br>
<br>
          event1 30.0 event2 90.0<br>
          event1 20.0 event2 90.0<br>
          event1 10.0 event2 90.0<br>
          event1 10.0 event2 80.0<br>
<br>
So what is exactly the consumption policy used in DROOLS ? It seems that<br>
is unrestricted for event 90.0 and chronological for event 80 .<br>
<br>
We have tested different situations and order of events and we always<br>
came to the conclusion that for the first $c2 the policy is<br>
chronological and for all the other $c2&#39;s it is unrestricted.<br>
<br>
Thank you for you time.<br>
Khalil<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>
</blockquote></div><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>