Hi Wolfgang,<br><br>thanks for having pointed this out. <br>I reproduced this issue and, with Mark's help, fixed it. I just pushed the fix on the master and backported it to both the 5.5.x and 5.4.x branches.<br><br>Mario<br>
<br><div class="gmail_quote">On Mon, Dec 17, 2012 at 12:29 PM, Wolfgang Laun <span dir="ltr"><<a href="mailto:wolfgang.laun@gmail.com" target="_blank">wolfgang.laun@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
package reactive;<br>
<br>
declare Person<br>
@propertyReactive<br>
name : String<br>
age : int<br>
weight : int<br>
city : String<br>
end<br>
This is a simple all-DRL test case demonstrating that property reactive<br>
may cause pending activations to be removed, depending on some<br>
specific composition of the LHS.<br>
<br>
* As the DRL is, only one rule fires but both should.<br>
* Adding the Integer pattern (in either form) in both rules may result in<br>
both rules firing, or only one, but both should.<br>
<br>
Best<br>
-W<br>
<br>
rule kickoff<br>
salience 100<br>
when<br>
then<br>
Person p = new Person( "Joe", 20, 20, "Boston" );<br>
insert( p );<br>
insert( new Integer(1000) );<br>
end<br>
<br>
rule "y"<br>
when<br>
$p : Person(name == "Joe" )<br>
// $o : Integer( intValue == 1000)<br>
// $o : Integer()<br>
then<br>
modify($p){<br>
setAge( 100 )<br>
}<br>
end<br>
<br>
rule "x"<br>
when<br>
$p : Person(name == "Joe" )<br>
// $o : Integer( intValue == 1000)<br>
// $o : Integer()<br>
then<br>
modify($p){<br>
setWeight( 100 )<br>
}<br>
end<br>
<br>
rule z<br>
salience -100<br>
when<br>
$p : Person()<br>
then<br>
System.out.println( $p );<br>
end<br>
<br>
// End<br>
_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
</blockquote></div><br>