<br>   Correct. This is explained in the manual. All production rules rete-based engines work like this, executing the rule consequence once for each logical branch.<br><br>   []s<br>   Edson<br><br><div class="gmail_quote">
2009/6/8 Anstis, Michael (M.) <span dir="ltr">&lt;<a href="mailto:manstis1@ford.com">manstis1@ford.com</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;">
I believe the answer is that Drools implements sub-rule compilation for<br>
rules containing &quot;or&quot;.<br>
<br>
So in essence your rulebase contains the following once compiled:-<br>
<br>
rule &quot;fire_twice_a&quot;<br>
<div class="im">        no-loop true<br>
when<br>
        eval(true)<br>
</div><div class="im">then<br>
        System.out.println(&quot;word&quot;);<br>
end<br>
<br>
</div>rule &quot;fire_twice_b&quot;<br>
<div class="im">        no-loop true<br>
when<br>
        eval(true)<br>
</div><div class="im">then<br>
        System.out.println(&quot;word&quot;);<br>
end<br>
<br>
<br>
</div><div><div></div><div class="h5">-----Original Message-----<br>
From: <a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a><br>
[mailto:<a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a>] On Behalf Of<br>
sergey.olifirenko<br>
Sent: 08 June 2009 13:39<br>
To: <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
Subject: Re: [rules-users] OR operator affects how many times Rule&#39;s<br>
actionis executed<br>
<br>
<br>
More simple example:<br>
<br>
<br>
package continuated_rules<br>
<br>
dialect &quot;mvel&quot;<br>
<br>
rule &quot;fire_twice&quot;<br>
        no-loop true<br>
when<br>
        eval(true) or eval(true)<br>
then<br>
        System.out.println(&quot;word&quot;);<br>
end<br>
<br>
output is:<br>
<br>
word<br>
word<br>
<br>
why does it happens ?<br>
<br>
--<br>
View this message in context:<br>
<a href="http://www.nabble.com/OR-operator-affects-how-many-times-Rule%27s-action%0A-is-executed-tp23910106p23923259.html" target="_blank">http://www.nabble.com/OR-operator-affects-how-many-times-Rule%27s-action<br>
-is-executed-tp23910106p23923259.html</a><br>
Sent from the drools - user mailing list archive at Nabble.com.<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>
<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"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>