<br>&nbsp;&nbsp; Your understanding is correct. So activation-group does not solve your problem.<br><br>&nbsp;&nbsp; []s<br>&nbsp;&nbsp; Edson<br><br><div class="gmail_quote">2008/11/4 techy <span dir="ltr">&lt;<a href="mailto:techluver007@gmail.com">techluver007@gmail.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;"><br>
Thanks &nbsp;Edson.<br>
If Parent rule does not fire, I want all of child rules to get fired. As per<br>
my understanding, If I use activation-group, Then It can only fire one child<br>
at max(which is not what I want.)<br>
<br>
Please clarify this.<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
Edson Tirelli-3 wrote:<br>
&gt;<br>
&gt; &nbsp; &nbsp;activation-group allows you to define mutually exclusive groups of<br>
&gt; rules<br>
&gt; where when one fire, it cancel the others.<br>
&gt;<br>
&gt; &nbsp; &nbsp;[]s<br>
&gt; &nbsp; &nbsp;Edson<br>
&gt;<br>
&gt; 2008/10/31 Greg Barton &lt;<a href="mailto:greg_barton@yahoo.com">greg_barton@yahoo.com</a>&gt;<br>
&gt;<br>
&gt;&gt; Yep, it would affect all rules that could match on those facts.<br>
&gt;&gt;<br>
&gt;&gt; You could have a control fact per child rule that could potentially<br>
&gt;&gt; match.<br>
&gt;&gt; &nbsp;The child rule would include an existence check for that fact in it&#39;s<br>
&gt;&gt; conditions. &nbsp;The parent rule would retract the fact to prevent the child<br>
&gt;&gt; rule from firing.<br>
&gt;&gt;<br>
&gt;&gt; A bit more clunky than the custom agenda filter approach, but:<br>
&gt;&gt;<br>
&gt;&gt; 1) I haven&#39;t tested the custom agenda filter thing, so I&#39;m just guessing<br>
&gt;&gt; it&#39;d work. (I&#39;m pretty sure it would, though.)<br>
&gt;&gt; 2) It would be more portable across other rule engines. (If that&#39;s<br>
&gt;&gt; important to you.)<br>
&gt;&gt;<br>
&gt;&gt; --- On Fri, 10/31/08, techy &lt;<a href="mailto:techluver007@gmail.com">techluver007@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; &gt; From: techy &lt;<a href="mailto:techluver007@gmail.com">techluver007@gmail.com</a>&gt;<br>
&gt;&gt; &gt; Subject: Re: [rules-users] controling rule execution<br>
&gt;&gt; &gt; To: <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; &gt; Date: Friday, October 31, 2008, 2:44 PM<br>
&gt;&gt; &gt; Thanks Greg and Joe.<br>
&gt;&gt; &gt; I think i should have mentioned this before.<br>
&gt;&gt; &gt; I can also have other parent rule node in the tree<br>
&gt;&gt; &gt; structure which tests<br>
&gt;&gt; &gt; against same fact. &nbsp;Each parent rule node should only<br>
&gt;&gt; &gt; control its child rule<br>
&gt;&gt; &gt; nodes, but not other parent rule node and &nbsp;child rule node.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; If I do retract, won&#39;t it affect other parent rule<br>
&gt;&gt; &gt; node?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Greg Barton wrote:<br>
&gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; You may consider the other suggestion of retracting<br>
&gt;&gt; &gt; the fact(s) that would<br>
&gt;&gt; &gt; &gt; trigger the child rule. &nbsp;It&#39;s the more<br>
&gt;&gt; &gt; &quot;natural&quot; way of going about it.<br>
&gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; What&#39;s driving this design choice?<br>
&gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; --- On Fri, 10/31/08, techy<br>
&gt;&gt; &gt; &lt;<a href="mailto:techluver007@gmail.com">techluver007@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt;&gt; From: techy &lt;<a href="mailto:techluver007@gmail.com">techluver007@gmail.com</a>&gt;<br>
&gt;&gt; &gt; &gt;&gt; Subject: Re: [rules-users] controling rule<br>
&gt;&gt; &gt; execution<br>
&gt;&gt; &gt; &gt;&gt; To: <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; &gt; &gt;&gt; Date: Friday, October 31, 2008, 8:24 AM<br>
&gt;&gt; &gt; &gt;&gt; Thanks Greg.<br>
&gt;&gt; &gt; &gt;&gt; child rule should be reactivated if parent&#39;s<br>
&gt;&gt; &gt; conditions<br>
&gt;&gt; &gt; &gt;&gt; for some other fact<br>
&gt;&gt; &gt; &gt;&gt; are false.<br>
&gt;&gt; &gt; &gt;&gt; this should happen for &nbsp;each fact. &nbsp;Parent&#39;s<br>
&gt;&gt; &gt; condition<br>
&gt;&gt; &gt; &gt;&gt; should decide whether<br>
&gt;&gt; &gt; &gt;&gt; child rule should be executed or not for each<br>
&gt;&gt; &gt; fact. If<br>
&gt;&gt; &gt; &gt;&gt; parent&#39;s conditions<br>
&gt;&gt; &gt; &gt;&gt; are true, then don&#39;t execute child rule and<br>
&gt;&gt; &gt; vice versa.<br>
&gt;&gt; &gt; &gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt; Greg Barton wrote:<br>
&gt;&gt; &gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt; &gt;&gt; &gt; A combination of higher priority parent rules<br>
&gt;&gt; &gt; with a<br>
&gt;&gt; &gt; &gt;&gt; custom agenda filter,<br>
&gt;&gt; &gt; &gt;&gt; &gt; activated when the parent rule fires, that<br>
&gt;&gt; &gt; prevents<br>
&gt;&gt; &gt; &gt;&gt; the child rule from<br>
&gt;&gt; &gt; &gt;&gt; &gt; firing.<br>
&gt;&gt; &gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt; &gt;&gt; &gt; Just a guess.<br>
&gt;&gt; &gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt; &gt;&gt; &gt; So, after the child rule is initially<br>
&gt;&gt; &gt; prevented from<br>
&gt;&gt; &gt; &gt;&gt; firing, can it be<br>
&gt;&gt; &gt; &gt;&gt; &gt; reactivated? &nbsp;If so, when and under what<br>
&gt;&gt; &gt; conditions?<br>
&gt;&gt; &gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt; &gt;&gt; &gt; --- On Thu, 10/30/08, techy<br>
&gt;&gt; &gt; &gt;&gt; &lt;<a href="mailto:techluver007@gmail.com">techluver007@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt; &gt;&gt; &gt;&gt; From: techy<br>
&gt;&gt; &gt; &lt;<a href="mailto:techluver007@gmail.com">techluver007@gmail.com</a>&gt;<br>
&gt;&gt; &gt; &gt;&gt; &gt;&gt; Subject: [rules-users] controling rule<br>
&gt;&gt; &gt; execution<br>
&gt;&gt; &gt; &gt;&gt; &gt;&gt; To: <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; &gt; &gt;&gt; &gt;&gt; Date: Thursday, October 30, 2008, 11:18<br>
&gt;&gt; &gt; PM<br>
&gt;&gt; &gt; &gt;&gt; &gt;&gt; Hello,<br>
&gt;&gt; &gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt; &gt;&gt; I would like to have the rules<br>
&gt;&gt; &gt; parent/child<br>
&gt;&gt; &gt; &gt;&gt; structure. I<br>
&gt;&gt; &gt; &gt;&gt; &gt;&gt; don&#39;t want the<br>
&gt;&gt; &gt; &gt;&gt; &gt;&gt; child rules to be executed &nbsp;when<br>
&gt;&gt; &gt; parent&#39;s<br>
&gt;&gt; &gt; &gt;&gt; conditions<br>
&gt;&gt; &gt; &gt;&gt; &gt;&gt; are true(i.e<br>
&gt;&gt; &gt; &gt;&gt; &gt;&gt; consequence is &nbsp;executed) even if<br>
&gt;&gt; &gt; child&#39;s<br>
&gt;&gt; &gt; &gt;&gt; conditions<br>
&gt;&gt; &gt; &gt;&gt; &gt;&gt; are true. How Can I<br>
&gt;&gt; &gt; &gt;&gt; &gt;&gt; achieve that in drools?<br>
&gt;&gt; &gt; &gt;&gt; &gt;&gt; Please clarify.<br>
&gt;&gt; &gt; &gt;&gt; &gt;&gt; --<br>
&gt;&gt; &gt; &gt;&gt; &gt;&gt; View this message in context:<br>
&gt;&gt; &gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; <a href="http://www.nabble.com/controling-rule-execution-tp20260028p20260028.html" target="_blank">http://www.nabble.com/controling-rule-execution-tp20260028p20260028.html</a><br>
&gt;&gt; &gt; &gt;&gt; &gt;&gt; Sent from the drools - user mailing list<br>
&gt;&gt; &gt; archive<br>
&gt;&gt; &gt; &gt;&gt; at<br>
&gt;&gt; &gt; &gt;&gt; &gt;&gt; Nabble.com.<br>
&gt;&gt; &gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; &gt;&gt; &gt;&gt; rules-users mailing list<br>
&gt;&gt; &gt; &gt;&gt; &gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; &gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;<br>
&gt;&gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt; &gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; &gt;&gt; &gt; rules-users mailing list<br>
&gt;&gt; &gt; &gt;&gt; &gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; &gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt; &gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt; &gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt; --<br>
&gt;&gt; &gt; &gt;&gt; View this message in context:<br>
&gt;&gt; &gt; &gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; <a href="http://www.nabble.com/controling-rule-execution-tp20260028p20265921.html" target="_blank">http://www.nabble.com/controling-rule-execution-tp20260028p20265921.html</a><br>
&gt;&gt; &gt; &gt;&gt; Sent from the drools - user mailing list archive<br>
&gt;&gt; &gt; at<br>
&gt;&gt; &gt; &gt;&gt; Nabble.com.<br>
&gt;&gt; &gt; &gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt; _______________________________________________<br>
&gt;&gt; &gt; &gt;&gt; rules-users mailing list<br>
&gt;&gt; &gt; &gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; &gt; &gt;&gt;<br>
&gt;&gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; &gt; rules-users mailing list<br>
&gt;&gt; &gt; &gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; &gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; View this message in context:<br>
&gt;&gt; &gt;<br>
&gt;&gt; <a href="http://www.nabble.com/controling-rule-execution-tp20260028p20272962.html" target="_blank">http://www.nabble.com/controling-rule-execution-tp20260028p20272962.html</a><br>
&gt;&gt; &gt; Sent from the drools - user mailing list archive at<br>
&gt;&gt; &gt; Nabble.com.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; rules-users mailing list<br>
&gt;&gt; &gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; rules-users mailing list<br>
&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; &nbsp;Edson Tirelli<br>
&gt; &nbsp;JBoss Drools Core Development<br>
&gt; &nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com" target="_blank">www.jboss.com</a><br>
&gt;<br>
&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>
&gt;<br>
<br>
--<br>
</div></div>View this message in context: <a href="http://www.nabble.com/controling-rule-execution-tp20260028p20332870.html" target="_blank">http://www.nabble.com/controling-rule-execution-tp20260028p20332870.html</a><br>

<div><div></div><div class="Wj3C7c">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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br> &nbsp;Edson Tirelli<br> &nbsp;JBoss Drools Core Development<br> &nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>