activation-group may be what you are looking for. For things in the one activation group, only one rule is guaranteed to fire.<br><br>eg: activation-group &quot;NIKE&quot; .... <br><br>its an attribute like no-loop etc.<br>
<br><div><span class="gmail_quote">On 2/14/07, <b class="gmail_sendername">jdepaul</b> &lt;<a href="mailto:jjdepaul@us.ibm.com">jjdepaul@us.ibm.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>I have several rules defined in groups by Customer, so I have number of rules<br>for Walmart, some rules for NIKE, more rules for SomeCustomer...&nbsp;&nbsp;When one<br>of the rules matches for a given customer I need to send an event
<br>notification.&nbsp;&nbsp;I need to make sure that I send only ONE event notification<br>per Customer (regardless of how many rules were matched), thus after finding<br>the very first match in the Walmart group, I&#39;d like to activate a rule, and
<br>then short-circuit and &quot;Skip&quot; to the next group of rules for NIKE - to see<br>if any of the matches are found in the next group.<br><br>I&#39;ve implemented this functionality using a Match object, which I assert
<br>into WorkingMemory whenever I find a match for customer, then all my rules<br>check for absence of Match for given customer...<br><br>This works, but I wonder if there is a better way to do it - using Agenda<br>Groups, maybe - once I find ONE match for Walmart, skip to the next Agenda
<br>Group?!&nbsp;&nbsp;Could someone comment on this?<br><br>THanks,<br>James<br>--<br>View this message in context: <a href="http://www.nabble.com/Short-circuit-rules-by-group-%21-tf3222142.html#a8949165">http://www.nabble.com/Short-circuit-rules-by-group-%21-tf3222142.html#a8949165
</a><br>Sent from the drools - user mailing list archive at <a href="http://Nabble.com">Nabble.com</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">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote></div><br>