There was a similar thread a couple of days ago:
http://drools.46999.n3.nabble.com/Why-does-it-seem-like-salience-is-being...
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).
Best Regards,
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Esteban Aliverti
- Blog @
http://ilesteban.wordpress.com
On Fri, Oct 26, 2012 at 5:46 PM, jpullmann <
jaroslav.pullmann(a)fit.fraunhofer.de> wrote:
Wolfgang,
here comes an Eclipse/Maven project with simplified sources. I'd expect
to
see messages from higher ranked intercepting rules for any of the events
sent,
which is not the case...
rule "Intercept context creation"
salience 10
when
$start : StartCommand() from entry-point "events/context"
not( Context( name == $start.name ) )
then
System.out.println("Context "+$start.getName()+" to be
created");
end
rule "Intercept context removal"
salience 10
when
$end : EndCommand() from entry-point "events/context"
Context( name == $end.name )
then
System.out.println("Context "+$end.getName()+" to be
removed");
end
Context Context_0 to be created
Context Context_0 to be removed
Context Context_1 to be removed --
Context Context_2 to be removed --
Context Context_3 to be removed --
Context Context_4 to be created
Context Context_4 to be removed --
Best regards
Jaroslav
Example.zip <
http://drools.46999.n3.nabble.com/file/n4020513/Example.zip>
--
View this message in context:
http://drools.46999.n3.nabble.com/Intercept-event-handling-why-rule-salie...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users