[jboss-jira] [JBoss JIRA] Assigned: (JBRULES-554) False "Duplicate declaration for variable" error when doing "Match( homeTeam == $team) || Match( awayTeam == $team)"
Edson Tirelli (JIRA)
jira-events at jboss.com
Wed Dec 13 14:38:38 EST 2006
[ http://jira.jboss.com/jira/browse/JBRULES-554?page=all ]
Edson Tirelli reassigned JBRULES-554:
-------------------------------------
Assignee: Edson Tirelli (was: Mark Proctor)
> 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
> 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: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list