<div dir="ltr">Thanks<div><br></div><div>what do you mean by "complete" conditions?<br><br><div class="gmail_quote">2010/12/17 Wolfgang Laun <span dir="ltr"><<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">It would not be impossible to define a "first-rule-wins" group, where the first rule to fire may keep on doing so, locking out all others. But this is an incomplete definition; you'd also have to specify how long the lock-out effect should remain. If this isn't for the entire duration of the session, then what?<br>
<br>Not knowing the actual conditions and other details I cannot really make a positive statement, but there's some doubt in my mind whether the stated problem might not be solved by using "complete" conditions.<br>
<br>-W<br><br><br><div class="gmail_quote">2010/12/17 Yaniv Itzhaki <span dir="ltr"><<a href="mailto:iyaniv@gmail.com" target="_blank">iyaniv@gmail.com</a>></span><div><div></div><div class="h5"><br><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
<div dir="ltr">Thanks for your help<div><br></div><div>I was looking for internal drools feature to solve this issue (this is what i meant by etc..).</div><div><br></div><div><br><div class="gmail_quote">2010/12/16 Bruno Freudensprung <span dir="ltr"><<a href="mailto:bruno.freudensprung@temis.com" target="_blank">bruno.freudensprung@temis.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
<div bgcolor="#ffffff" text="#000000">
<br>
Hi,<br>
<br>
I don't know if it is the best solution since I am very new to Drools
but you could use a logical insert of a "Skip" fact. Something like:<div><br>
<br>
rule "A1"<br>
salience 100<br>
ruleflow-group "A"<br>
activation-group "A"<br>
when<br>
xxx1<br>
then<br>
yyy1<br>
</div><b> insertLogical(new Skip());<br>
</b><div>end<br>
<br>
rule "A2"<br>
salience 90<br>
ruleflow-group "A"<br>
activation-group "A"<br>
when<br>
</div><b> not Skip()<br>
</b> xxx2<br>
then<br>
yyy2<br>
end<br>
<br>
Bruno.<br>
<br>
Yaniv Itzhaki a écrit :
<blockquote type="cite"><div><div></div><div>
<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" target="_blank">iyaniv@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;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> </span>salience 100</div>
<div><span> </span>ruleflow-group "A"</div>
<div><span> </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> </span>salience 90</div>
<div><span> </span>ruleflow-group "A"</div>
<div><span> </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>
</div></div><pre><hr size="4" width="90%"><div>
_______________________________________________
rules-users mailing list
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</div></pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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></blockquote></div><br></div></div>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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></blockquote></div></div></div><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>
<br></blockquote></div><br></div></div>