[jboss-jira] [JBoss JIRA] (DROOLS-5) Named Consequence: compilation error if used after 'not' pattern

Esteban Aliverti (JIRA) jira-events at lists.jboss.org
Fri Dec 21 11:08:08 EST 2012


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

Esteban Aliverti commented on DROOLS-5:
---------------------------------------

This is the pull request adding a failing example: https://github.com/droolsjbpm/drools/pull/169
                
> Named Consequence: compilation error if used after 'not' pattern
> ----------------------------------------------------------------
>
>                 Key: DROOLS-5
>                 URL: https://issues.jboss.org/browse/DROOLS-5
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>            Reporter: Esteban Aliverti
>            Assignee: Mark Proctor
>              Labels: named_consequence
>
> If the label of a named consequence is used right after a 'not' pattern, a compilation error is raised.
> For example:
> rule R1 when
>     $a: Cheese ( type == "stilton" )
>     not Cheese ( type == "brie" )
>     do[t1]
>     b: Cheese ( type == "cheddar" )
> then
>     results.add( $b.getType() );
> then[t1]
>     results.add( $a.getType() );
> 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