[jboss-jira] [JBoss JIRA] Commented: (JBRULES-3046) regression: spurious rule firing for exists(...) or not(...)

Mark Proctor (JIRA) jira-events at lists.jboss.org
Mon May 23 20:07:00 EDT 2011


    [ https://issues.jboss.org/browse/JBRULES-3046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12603784#comment-12603784 ] 

Mark Proctor commented on JBRULES-3046:
---------------------------------------

when pasting code use the {code} wiki markup that confluence supports, see "help" button for more details.

> regression: spurious rule firing for exists(...) or not(...)
> ------------------------------------------------------------
>
>                 Key: JBRULES-3046
>                 URL: https://issues.jboss.org/browse/JBRULES-3046
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-compiler (expert)
>    Affects Versions: 5.2.0.M2
>            Reporter: Wolfgang Laun
>            Assignee: Mark Proctor
>            Priority: Blocker
>             Fix For: 5.2.0.CR1
>
>
> The DRL code below results in TWO firings of rule exornot. (5.1.1: Only one firing) 
> declare Fact
>   x : int
>   y : int
> end
> rule ins
> when
> then
>     insert( new Fact( 1, 10 ) );
>     insert( new Fact( 2, 20 ) );
> end
> rule  exornot
> when
>     exists Fact( x == 1 )
>     or
>     not Fact( x == 2, y == 20 )
> then
>     System.out.println( "SUCCESS" );
> end
> NOTE: If field 'y' is removed from 'Fact' and the rule patterns, the rule fires still twice in 5.3.0, but also twice in 5.1.1.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list