Just to add to what salaboy wrote, *all* LHS are evaluated as Facts are inserted.<br><br>If I am not mistaken, ruleflow-group (like agenda-group) only controls what activations (RHS) on the agenda caused by the evaluation of the LHS are executed.<br>
<br><div class="gmail_quote">On 21 December 2011 15:24, Mauricio Salatino <span dir="ltr">&lt;<a href="mailto:salaboy@gmail.com">salaboy@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">
Hi,<br>
if you use the from expression it will get evaluated each time that<br>
anything in the session change (at least in your example).<br>
So you can insert all the NikeShoes from the service you are calling<br>
into the working memory and those rules will be only evaluated when a<br>
NikeShoe is modified or inserted. Using ruleflow-groups do not prevent<br>
the evaluation from the other rules, it just prevent those rules to<br>
fire.<br>
<br>
Cheers<br>
<br>
2011/12/21 Alan Ma &lt;<a href="mailto:ama@spectrumk12.com">ama@spectrumk12.com</a>&gt;:<br>
<div><div class="h5">&gt; Hi Drools Rulers,<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I am new to drools and I’ve configured a rule with the following:<br>
&gt;<br>
&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; rule &quot;my rules&quot;<br>
&gt;<br>
&gt;     ruleflow-group &quot;nike&quot;<br>
&gt;<br>
&gt;     no-loop true<br>
&gt;<br>
&gt;     when<br>
&gt;<br>
&gt;         $nikeShoe : NikeShoe() from shoeManager.getNikeShoe(xxxx)<br>
&gt;<br>
&gt; then<br>
&gt;<br>
&gt;    xxxx<br>
&gt;<br>
&gt; end<br>
&gt;<br>
&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; When I run rule group “Adidas”, the getNikeShoe() query in group “nike” is<br>
&gt; executed. Although I did NOT invoke the rule group “nike” when executing<br>
&gt; rules, the shoeManager. getNikeShoe () call is always executed. Seems<br>
&gt; somehow the condition is pre-checked by drools somehow. Anyone could please<br>
&gt; share what I did wrong? I definitely don’t want to invoke group “nike” when<br>
&gt; executing group “Adidas”.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Thanks in advance!<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Alan M.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ________________________________<br>
&gt; CONFIDENTIALITY NOTICE: The information contained in this message is<br>
&gt; intended only for the recipient and may contain information that is<br>
&gt; confidential. If you are not the intended recipient or an employee or agent<br>
&gt; responsible for delivering this message to the intended recipient; please be<br>
&gt; aware that any dissemination, forwarding, printing, copying, disclosure or<br>
&gt; distribution of this communication is strictly prohibited. If you have<br>
&gt; received this communication in error, please immediately notify the sender<br>
&gt; by replying to the message and deleting all copies, including attachments,<br>
&gt; from your system.<br>
&gt;<br>
</div></div>&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>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
 - CTO @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com</a><br>
 - MyJourney @ <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><br>
 - Co-Founder @ <a href="http://www.jugargentina.org" target="_blank">http://www.jugargentina.org</a><br>
 - Co-Founder @ <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>
<br>
 - Salatino &quot;Salaboy&quot; Mauricio -<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>
</font></span></blockquote></div><br>