Hi,<br>The attribute &#39;activation-group&#39; might be what you are lookiing for:<br><a href="http://downloads.jboss.com/drools/docs/4.0.3.15993.GA/html/ch06s05.html#d0e3029">http://downloads.jboss.com/drools/docs/4.0.3.15993.GA/html/ch06s05.html#d0e3029
</a><br><br>Chris<br><br><div><span class="gmail_quote">2007/10/30, Dr. Gernot Starke &lt;<a href="mailto:gs@gernotstarke.de">gs@gernotstarke.de</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Georgy,<br><br>one (simple) way to achieve this is to assert a &quot;stop&quot;-fact on the<br>right-hand-side<br>of the executing rule (e.g. by setting an appropriate attribute)&nbsp;&nbsp;AND<br>querying that attribute on the LHS of every rule.
<br><br>Example (pseudo-code)<br><br>rule 1<br>&nbsp;&nbsp; when (business-conditions...)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;st: StopFact ( done == false )<br>&nbsp;&nbsp; then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; st.setDone( true ); // make ALL other rules fail<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // all other actions...
<br>end<br><br>IMHO this is expressive in a way that the &quot;single-rule-only&quot; approach<br>is clearly visible in all rules...<br><br>But: Don&#39;t forget to set the StopFact to &quot;not-done&quot; after evaluation...
<br><br>regards from Cologne,<br>Gernot<br><br><br>Am 30.10.2007 um 08:21 schrieb nechukin:<br><br>&gt;<br>&gt; Hi,<br>&gt;<br>&gt; I&#39;m looking into the Drools engine for our application, and looks<br>&gt; like it&#39;s
<br>&gt; satisfies the reqirements. The only thing I haven&#39;t found still is a<br>&gt; following conflict management model:<br>&gt;<br>&gt; If rule_1 (with highest salience) is applicable, STOP applying another<br>&gt; rules.
<br>&gt;<br>&gt; So the essence is that only 1 or 0 rules should be applied for the<br>&gt; particular entity, not 2 or more.<br>&gt;<br>&gt; I&#39;m sure this is supported by engine. Where to look? Tried to scan<br>&gt; ConflictResolving section, but look like it is only about the rules
<br>&gt; application order, not more...<br>&gt;<br>&gt; Thanks,<br>&gt; Georgy<br>&gt; --<br>&gt; View this message in context: <a href="http://www.nabble.com/Use-only-first-">http://www.nabble.com/Use-only-first-</a><br>
&gt; matching-rule-tf4710521.html#a13464084<br>&gt; Sent from the drools - user mailing list archive at <a href="http://Nabble.com">Nabble.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">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>&gt;
<br><br>Dr. Gernot Starke<br>Doing IT Right<br><br>---<br>Willi-Lauf Allee 43, D-50858 Köln<br><a href="mailto:gs@gernotstarke.de">gs@gernotstarke.de</a>,<br>&nbsp;&nbsp;+49 (0) 177 - 728 2570<br><a href="http://www.gernotstarke.de">
http://www.gernotstarke.de</a><br>Blog: <a href="http://it-and-more.blogspot.com">http://it-and-more.blogspot.com</a><br>****************************************<br>Das freie Portal für Software-Architekten:<br><a href="http://www.arc42.de">
http://www.arc42.de</a><br><br><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>