]
Edson Tirelli commented on JBRULES-554:
---------------------------------------
Thank you for reporting and let me know if you have any other problem.
False "Duplicate declaration for variable" error when doing
"Match( homeTeam == $team) || Match( awayTeam == $team)"
--------------------------------------------------------------------------------------------------------------------
Key: JBRULES-554
URL:
http://jira.jboss.com/jira/browse/JBRULES-554
Project: JBoss Rules
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Drl Parser/Builder
Affects Versions: 3.0.4
Reporter: Geoffrey De Smet
Assigned To: Edson Tirelli
Priority: Minor
Fix For: 3.1-m2
Attachments: JBRULES-554-testcase-branch-3.0.x.patch
[Maybe assign to Edson, he asked me to open in mailing list thread "Yet another or
question"]
On the 3.0.x branch (update from this time) when declaring this rule:
query "multipleMatchesPerTeamPerDay"
$team : Team();
Match( $id : id, homeTeam == $team, $day : day )
|| Match( $id : id, awayTeam == $team, $day : day );
exists Match( id > $id, homeTeam == $team, day == $day )
|| exists Match(id > $id, awayTeam == $team, day == $day );
end
It reports an error:
org.drools.rule.InvalidRulePackage: Duplicate declaration for variable '$day'
in the rule 'multipleMatchesPerTeamPerDay'
Testcase patch coming up.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: