Hi Wolfgang,

thanks for having pointed this out.
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.

Mario

On Mon, Dec 17, 2012 at 12:29 PM, Wolfgang Laun <wolfgang.laun@gmail.com> wrote:
package reactive;

declare Person
@propertyReactive
   name   : String
   age    : int
   weight : int
   city   : String
end
This is a simple all-DRL test case demonstrating that property reactive
may cause pending activations to be removed, depending on some
specific composition of the LHS.

* As the DRL is, only one rule fires but both should.
* Adding the Integer pattern (in either form) in both rules may result in
   both rules firing, or only one, but both should.

Best
-W

rule kickoff
salience 100
when
then
    Person p = new Person( "Joe", 20, 20, "Boston" );
    insert( p );
    insert( new Integer(1000) );
end

rule "y"
when
    $p : Person(name == "Joe" )
//    $o : Integer( intValue == 1000)
//    $o : Integer()
then
    modify($p){
       setAge( 100 )
    }
end

rule "x"
when
    $p : Person(name == "Joe" )
//    $o : Integer( intValue == 1000)
//    $o : Integer()
then
    modify($p){
        setWeight( 100 )
    }
end

rule z
salience -100
when
    $p : Person()
then
    System.out.println( $p );
end

// End
_______________________________________________
rules-dev mailing list
rules-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev