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: Mark Proctor
Priority: Minor
[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:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira