<div dir="ltr">any ideas anyone?<br><br><div class="gmail_quote">On Thu, Dec 16, 2010 at 12:36 PM, Yaniv Itzhaki <span dir="ltr"><<a href="mailto:iyaniv@gmail.com">iyaniv@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div dir="ltr">Hi,<div><br></div><div>I have a group of rules with salience which I would like that only the first activated rule will fire.</div><div><br></div><div>I cant use the activation-group attribute because each rule can fire number of times, and i want only this rule to be fired in that group:</div>
<div><br></div><div><div>rule "A1"</div><div><span style="white-space:pre-wrap">        </span>salience 100</div><div><span style="white-space:pre-wrap">        </span>ruleflow-group "A"</div>
<div><span style="white-space:pre-wrap">        </span>activation-group "A"</div></div><div>when</div><div> xxx1</div><div>then</div><div> yyy1</div><div>end</div><div><br></div><div><div>
<div>rule "A2"</div><div><span style="white-space:pre-wrap">        </span>salience 90</div><div><span style="white-space:pre-wrap">        </span>ruleflow-group "A"</div><div>
<span style="white-space:pre-wrap">        </span>activation-group "A"</div></div><div>when</div><div> xxx2</div><div>then</div><div> yyy2</div><div>end</div></div><div><br></div><div>
If Rule A1 run (activated number of times), rule A2 should not run.</div><div><br></div><div>Is there a way to do that? (no global flags etc.)</div><div><br></div><div>Thanks</div><div>Yaniv</div></div>
</blockquote></div><br></div>