<br>&nbsp;&nbsp;&nbsp; Please see a previous message I sent to the list. <br>&nbsp;&nbsp;&nbsp; You need a constraint that asymmetrically &quot;orders&quot; the events, so they can match one way but not the other:<br><br>rule &quot;Rules 1&quot;<br> &nbsp; &nbsp; &nbsp; &nbsp;when
<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rt: Event( name1 : name == &quot;SimpleEvent&quot;, id1 : id )<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ru: Event( name2: name == name1, id2 : id &gt; id1 )<br> &nbsp; &nbsp; &nbsp; &nbsp;then<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; System.out.println(&quot;Rule matchs&quot;);
<br>end<br><br>&nbsp;&nbsp;&nbsp; Note the id&gt;id1 in the above rule.<br><br>&nbsp;&nbsp;&nbsp; []s<br>&nbsp;&nbsp;&nbsp; Edson<br><br><div><span class="gmail_quote">2007/5/25, Nicolas Carlier &lt;<a href="mailto:carlier.nicolas@gmail.com">carlier.nicolas@gmail.com
</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hy,<br><br><br>Sorry i begin with Jboss rules. But imagine that i have this rule:
<br><br>rule &quot;Rules 1&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;when<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rt: Event( name1 : name, id1 : id, name == &quot;SimpleEvent&quot; )<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ru: Event( name2: name, id2 : id, name == name1)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;then<br>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.out.println(&quot;Rule matchs&quot;);<br>end<br><br>And that assert 2 objects &quot;Event&quot;,&nbsp;&nbsp;with the same attribute name (here<br>&quot;SimpleEvent&quot;) .<br><br>How to do that the rule wasn&#39;t executed twice ?
<br><br><br>Thanks,<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">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>&nbsp;&nbsp;Edson Tirelli<br>&nbsp;&nbsp;Software Engineer - JBoss Rules Core Developer<br>&nbsp;&nbsp;Office: +55 11 3529-6000<br>&nbsp;&nbsp;Mobile: +55 11 9287-5646
<br>&nbsp;&nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>