[jboss-jira] [JBoss JIRA] (JBRULES-3063) Drools should not allow set two rules with the same name for the same package
RH Bugzilla Integration (JIRA)
jira-events at lists.jboss.org
Tue May 14 21:25:07 EDT 2013
[ https://issues.jboss.org/browse/JBRULES-3063?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12774338#comment-12774338 ]
RH Bugzilla Integration commented on JBRULES-3063:
--------------------------------------------------
kylin <ksoong at redhat.com> made a comment on [bug 724753|https://bugzilla.redhat.com/show_bug.cgi?id=724753]
The [1] which is above comments referred, but page can not found which click it. I also can not found in BRMS 5.3.1 docs as [2]
[1] http://docs.redhat.com/docs/en-US/JBoss_Enterprise_SOA_Platform/5/html/JBoss_Rules_5_Reference_Guide/chap-language_reference.html#sect-rule
[2] https://access.redhat.com/site/documentation/en-US/JBoss_Enterprise_BRMS_Platform/5/html/JBoss_Rules_5_Reference_Guide/index.html
> Drools should not allow set two rules with the same name for the same package
> -----------------------------------------------------------------------------
>
> Key: JBRULES-3063
> URL: https://issues.jboss.org/browse/JBRULES-3063
> Project: JBRULES
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: drools-compiler
> Affects Versions: 5.1.1.FINAL
> Reporter: Alessandro Lazarotti
> Assignee: Edson Tirelli
> Priority: Minor
> Fix For: 5.3.0.Final
>
>
> Drools should not allow set two rules with the same name for the same package
> As expected, Drools does not allow us to define two rules with the same name in a same DRL file.
> But if there are two rules with the same name, in the same package, but in separate files, no exception or warning is issued, just one rule overrides the other in silence.
> From documentation:
> "A rule must have a name, unique within its rule package. If a rule is defined twice in a single DRL, an error will appear when one loads it. If a DRL that includes a rule name already in the package is added, the previous rule is repalced."[1]
> [1] http://docs.redhat.com/docs/en-US/JBoss_Enterprise_SOA_Platform/5/html/JBoss_Rules_5_Reference_Guide/chap-language_reference.html#sect-rule
> Different behavior for a similar action is not good. Both should alert user about a rule name repeated.
> For large projects using a lot of DRL files can be hard to track mistakes occurred by rules override . It is really necessary provide an ERROR message for this.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list