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

Mario Fusco (JIRA) jira-events at lists.jboss.org
Mon Jan 21 12:10:22 EST 2013


     [ https://issues.jboss.org/browse/DROOLS-4?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mario Fusco resolved DROOLS-4.
------------------------------

    Fix Version/s: 6.0.0.Alpha1
       Resolution: Done

    
> 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: Mario Fusco
>             Fix For: 6.0.0.Alpha1
>
>
> 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