<div><br></div>    Good catch. The diagram is wrong. It should be as it is stated in the documentation.<div><br></div><div>    Edson<br><div><br><div class="gmail_quote">On Tue, Dec 13, 2011 at 2:47 PM, Mike Melton <span dir="ltr">&lt;<a href="mailto:mike.melton@gmail.com">mike.melton@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thank you, Edson.<br>
<br>
I saw the written documentation but since the default after interval<br>
is [1ms, infinity], I wanted to check for the specific [0, infinity]<br>
case that there wasn&#39;t a better suited operator.<br>
<br>
I do have a (somewhat related) question about the documentation when<br>
compared to the diagram(s). Take, for example, the finishedby<br>
operator. The documentation says &quot;A finishedby B&quot; means A starts<br>
before B and A and B finish at the same time. However, the diagram<br>
shows A starting *after* B and A and B finishing at the same time. The<br>
other related operators (finishes, starts, startedby) all have the<br>
same discrepancy. (Additionally, the second diagram in the<br>
presentation includes a different definition for the finishes operator<br>
than the first diagram. Maybe it should be startedby?)<br>
<br>
My tests show me that the written documentation is correct and the<br>
diagram is not. Unless I am reading the diagram incorrectly; if that<br>
is the case, can someone explain it?<br>
<br>
Thanks.<br>
<br>
<br>
2011/12/13 Edson Tirelli &lt;<a href="mailto:ed.tirelli@gmail.com">ed.tirelli@gmail.com</a>&gt;:<br>
<div class="HOEnZb"><div class="h5">&gt;<br>
&gt;    Your use of the after operator is correct. The documentation tells you<br>
&gt; about that, although in textual form:<br>
&gt;<br>
&gt; <a href="http://docs.jboss.org/drools/release/5.3.0.Final/drools-fusion-docs/html_single/index.html#d0e611" target="_blank">http://docs.jboss.org/drools/release/5.3.0.Final/drools-fusion-docs/html_single/index.html#d0e611</a><br>

&gt;<br>
&gt;    This presentation has the 2 tables of operators:<br>
&gt;<br>
&gt; <a href="http://www.slideshare.net/ge0ffrey/applying-cep-drools-fusion-drools-jbpm-bootcamps-2011" target="_blank">http://www.slideshare.net/ge0ffrey/applying-cep-drools-fusion-drools-jbpm-bootcamps-2011</a><br>
&gt;<br>
&gt;     Edson<br>
&gt;<br>
&gt; On Tue, Dec 13, 2011 at 12:11 PM, Mike Melton &lt;<a href="mailto:mike.melton@gmail.com">mike.melton@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Apologies for the stupid question, but I haven&#39;t seen anything in the<br>
&gt;&gt; documentation regarding this and I want to verify my solution. Say I<br>
&gt;&gt; have a point-in-time event (i.e., duration of 0) that I want to<br>
&gt;&gt; correlate to another point-in-time event. I want a rule that will<br>
&gt;&gt; activate if the timestamp of one is greater than or equal to the<br>
&gt;&gt; other, basically &quot;after or coincides&quot;. I wrote a test using the<br>
&gt;&gt; following rule and it seemed to work:<br>
&gt;&gt;<br>
&gt;&gt; rule &quot;Greater Than or Equal&quot;<br>
&gt;&gt;  when<br>
&gt;&gt;    $e1 : TestEvent( $id : id )<br>
&gt;&gt;    $e2 : TestEvent( id != id, this after[0ms] $e1 )<br>
&gt;&gt;  then<br>
&gt;&gt;    System.out.println($e2 + &quot; is greater than or equal to &quot; + $e1);<br>
&gt;&gt; end<br>
&gt;&gt;<br>
&gt;&gt; I realize this rule will fire twice if the event timestamps are equal,<br>
&gt;&gt; but it&#39;s just for demonstration purposes; my question is specifically<br>
&gt;&gt; about the &quot;after[0ms]&quot; part. Is this the way to go to accomplish what<br>
&gt;&gt; I need? It seems so simple but I have this annoying feeling that I&#39;m<br>
&gt;&gt; missing something.<br>
&gt;&gt;<br>
&gt;&gt; On a slightly related topic, is there an updated version of the<br>
&gt;&gt; temporal operators image from the Drools Fusion homepage? It is a<br>
&gt;&gt; great visual description of the operators and I want to print it out<br>
&gt;&gt; and post it at my desk, but it doesn&#39;t include all of the operators.<br>
&gt;&gt;<br>
&gt;&gt; Image:<br>
&gt;&gt; <a href="http://www.jboss.org/drools/drools-fusion/mainColumnParagraphs/02/imageBinary/temporal-operators.png" target="_blank">http://www.jboss.org/drools/drools-fusion/mainColumnParagraphs/02/imageBinary/temporal-operators.png</a><br>

&gt;&gt; &gt;From page: <a href="http://www.jboss.org/drools/drools-fusion.html" target="_blank">http://www.jboss.org/drools/drools-fusion.html</a><br>
&gt;&gt;<br>
&gt;&gt; Thanks<br>
&gt;&gt; Mike<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; rules-users mailing list<br>
&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt;   Edson Tirelli<br>
&gt;   JBoss Drools Core Development<br>
&gt;   JBoss by Red Hat @ <a href="http://www.jboss.com" target="_blank">www.jboss.com</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<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"><div><br></div>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>
</div></div>