both rules are exactly the same.<br>If you found difference could be because your events are arriving in different orders.. or because the action of one rule cancel the activation of the second rule (if you are running both rules at the same time)<br>
<br><br><br><div class="gmail_quote">On Sat, Jan 9, 2010 at 2:37 PM, Khalil Hafsi <span dir="ltr">&lt;<a href="mailto:hafsi@fzi.de">hafsi@fzi.de</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;">
Hi guys,<br>
<br>
I was experimenting with Drools fusion (last version) and I have a small<br>
question :<br>
What is the difference between the following (down the page) two rules :<br>
(note the &quot;and&quot; between the patterns) , i.e : how one can understand the<br>
&quot;and&quot; , is it a logical or temporal conjunction ? and finally what is<br>
the implied &quot;relation&quot; between pattern as in rule &quot;b&quot; ? I think it is an<br>
&quot;and&quot; , but using drools fusion to detect 2 stocks having a temporal<br>
relation (using the after op.) , I found different results when<br>
explicitly using &quot;and&quot; between the patterns and not using it.<br>
One final question , what is the default event policy in fusion ? I can<br>
not find any docu about that.<br>
Thank you for your time -k<br>
<br>
rule &quot;a&quot;<br>
when<br>
    --pattern1<br>
    and<br>
    --pattern2<br>
then<br>
    --action<br>
end<br>
<br>
rule &quot;b&quot;<br>
when<br>
    --pattern1<br>
    --pattern2<br>
then<br>
--action<br>
end<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> - <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br> - <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br> - Salatino &quot;Salaboy&quot; Mauricio -<br>