]
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: