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"><<a href="mailto:salaboy@gmail.com">salaboy@gmail.com</a>></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 <<a href="mailto:ama@spectrumk12.com">ama@spectrumk12.com</a>>:<br>
<div><div class="h5">> Hi Drools Rulers,<br>
><br>
><br>
><br>
> I am new to drools and I’ve configured a rule with the following:<br>
><br>
> ------------------------------------------------------------------------<br>
><br>
> rule "my rules"<br>
><br>
> ruleflow-group "nike"<br>
><br>
> no-loop true<br>
><br>
> when<br>
><br>
> $nikeShoe : NikeShoe() from shoeManager.getNikeShoe(xxxx)<br>
><br>
> then<br>
><br>
> xxxx<br>
><br>
> end<br>
><br>
> ------------------------------------------------------------------------<br>
><br>
><br>
><br>
> When I run rule group “Adidas”, the getNikeShoe() query in group “nike” is<br>
> executed. Although I did NOT invoke the rule group “nike” when executing<br>
> rules, the shoeManager. getNikeShoe () call is always executed. Seems<br>
> somehow the condition is pre-checked by drools somehow. Anyone could please<br>
> share what I did wrong? I definitely don’t want to invoke group “nike” when<br>
> executing group “Adidas”.<br>
><br>
><br>
><br>
> Thanks in advance!<br>
><br>
><br>
><br>
> Alan M.<br>
><br>
><br>
><br>
><br>
> ________________________________<br>
> CONFIDENTIALITY NOTICE: The information contained in this message is<br>
> intended only for the recipient and may contain information that is<br>
> confidential. If you are not the intended recipient or an employee or agent<br>
> responsible for delivering this message to the intended recipient; please be<br>
> aware that any dissemination, forwarding, printing, copying, disclosure or<br>
> distribution of this communication is strictly prohibited. If you have<br>
> received this communication in error, please immediately notify the sender<br>
> by replying to the message and deleting all copies, including attachments,<br>
> from your system.<br>
><br>
</div></div>> _______________________________________________<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>
<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 "Salaboy" 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>