[jboss-jira] [JBoss JIRA] Updated: (JBRULES-2072) Updating a fact within a rule fails unless the fact is explicitly declared in the LHS of the rule

Damon Horrell (JIRA) jira-events at lists.jboss.org
Thu Apr 23 01:10:40 EDT 2009


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

Damon Horrell updated JBRULES-2072:
-----------------------------------

    Attachment: drools-bug-tests.zip


Attached test case.

> Updating a fact within a rule fails unless the fact is explicitly declared in the LHS of the rule
> -------------------------------------------------------------------------------------------------
>
>                 Key: JBRULES-2072
>                 URL: https://jira.jboss.org/jira/browse/JBRULES-2072
>             Project: JBoss Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>            Reporter: Damon Horrell
>            Assignee: Mark Proctor
>         Attachments: drools-bug-tests.zip
>
>
> This works:
> rule "declaring foo in LHS"
> 	when
> 		bar : Bar(foo : foo);
> 	then
> 		update(foo);
> end
> but this doesn't:
> rule "not declaring foo in LHS"
> 	when
> 		bar : Bar();
> 	then
> 		update(bar.getFoo());
> end
> This was broken recently because it works in 5.0.0.CR1 but not in 5.0.0.SNAPSHOT or 5.0.1.SNAPSHOT.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list