There was a similar thread a couple of days ago: <a href="http://drools.46999.n3.nabble.com/Why-does-it-seem-like-salience-is-being-ignored-td4018669.html">http://drools.46999.n3.nabble.com/Why-does-it-seem-like-salience-is-being-ignored-td4018669.html</a><div>
The issue is related to the use of fireUntilHalt(). According to Edson, with fireUntilHalt() as soon as an activation is created it is fired (if the agenda is idle).</div><div><br></div><div>Best Regards,<br clear="all">
<br>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
<br><br><div class="gmail_quote">On Fri, Oct 26, 2012 at 5:46 PM, jpullmann <span dir="ltr"><<a href="mailto:jaroslav.pullmann@fit.fraunhofer.de" target="_blank">jaroslav.pullmann@fit.fraunhofer.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Wolfgang,<br>
<br>
here comes an Eclipse/Maven project with simplified sources. I'd expect to<br>
see messages from higher ranked intercepting rules for any of the events<br>
sent,<br>
which is not the case...<br>
<div class="im"><br>
rule "Intercept context creation"<br>
salience 10<br>
when<br>
$start : StartCommand() from entry-point "events/context"<br>
not( Context( name == $<a href="http://start.name" target="_blank">start.name</a> ) )<br>
then<br>
</div> System.out.println("Context "+$start.getName()+" to be created");<br>
end<br>
<br>
rule "Intercept context removal"<br>
salience 10<br>
when<br>
$end : EndCommand() from entry-point "events/context"<br>
Context( name == $<a href="http://end.name" target="_blank">end.name</a> )<br>
then<br>
System.out.println("Context "+$end.getName()+" to be removed");<br>
end<br>
<br>
Context Context_0 to be created<br>
Context Context_0 to be removed<br>
Context Context_1 to be removed --<br>
Context Context_2 to be removed --<br>
Context Context_3 to be removed --<br>
Context Context_4 to be created<br>
Context Context_4 to be removed --<br>
<br>
Best regards<br>
Jaroslav<br>
<br>
<br>
<br>
Example.zip <<a href="http://drools.46999.n3.nabble.com/file/n4020513/Example.zip" target="_blank">http://drools.46999.n3.nabble.com/file/n4020513/Example.zip</a>><br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Intercept-event-handling-why-rule-salience-does-not-affect-execution-order-tp4020506p4020513.html" target="_blank">http://drools.46999.n3.nabble.com/Intercept-event-handling-why-rule-salience-does-not-affect-execution-order-tp4020506p4020513.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the Drools: User forum mailing list archive at Nabble.com.<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></div>