[jboss-jira] [JBoss JIRA] (DROOLS-4) Property reactive may cause pending activations to be removed

Mario Fusco (JIRA) jira-events at lists.jboss.org
Wed Dec 19 03:39:08 EST 2012


Mario Fusco created DROOLS-4:
--------------------------------

             Summary: Property reactive may cause pending activations to be removed
                 Key: DROOLS-4
                 URL: https://issues.jboss.org/browse/DROOLS-4
             Project: Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
            Reporter: Mario Fusco
            Assignee: Mark Proctor


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:

declare Person
@propertyReactive
   name   : String
   age    : int
   weight : int
end

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

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

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

rule z
salience -100
when
    $p : Person()
then
    System.out.println( $p );
    if ($p.getAge() != 100 || $p.getWeight() != 100) throw new RuntimeException();
end

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list