[jboss-jira] [JBoss JIRA] Updated: (JBRULES-2987) Literal expression not possible in constraint
Mark Proctor (JIRA)
jira-events at lists.jboss.org
Thu Sep 29 03:05:31 EDT 2011
[ https://issues.jboss.org/browse/JBRULES-2987?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Proctor updated JBRULES-2987:
----------------------------------
Assignee: Edson Tirelli (was: Mark Proctor)
> Literal expression not possible in constraint
> ---------------------------------------------
>
> Key: JBRULES-2987
> URL: https://issues.jboss.org/browse/JBRULES-2987
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: drools-compiler (expert)
> Affects Versions: 3.0-beta3
> Reporter: Wolfgang Laun
> Assignee: Edson Tirelli
>
> declare Article
> artid : int;
> artname : String;
> custid : int;
> end
> declare Customer
> custid : int
> endrule "articles of a customer"
> when
> $c: Customer( $custid: custid )
> $a: Article( $artid: artid, artname == "mou" + "se", $custid : custid == $custid )
> then
> end
> This produces the (misleading) error message below, but should work according to Mark Proctor.
> Notice that artname == ("mou" + "se") works correctly.
> Unable to return Declaration for identifier '"mou" + "se"' : [Rule name='articles of a customer']
--
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