[rules-dev] PackageBuilder Warnings question

Mikael Lönneberg emil at snickeboa.com
Wed Aug 24 17:44:25 EDT 2011


Hi I'm currently working on an implementation of a new type of problem type
namely Warnings, to solve the following JIRA's:
JBRULES-3124, JBRULES-3063, JBRULES-2730

One of the JIRA's deal with the detection of duplicate rules and another
with detection of duplicate functions.
The question I have is in regards to this is, the current implementation
allows for rules and functions to be overridden by functions and rules
defined in different .drl files.
In order to not break backwards compatibility and allow people to continue
with this behavior we could just create a warning for these types of issues
which is reported through a new getProblems(ProblemType... problemTypes) to
get the problem types you are interested in, we will leave the legacy method
getErrors() for backward compatibility. Another approach or complementary
approach is to for certain types of these Warnings configure the compiler to
be more or less strict, which in turn would switch the Type of these issues
from Warning to Error. Is this something that's desirable or would it be
sufficient to just report these issues as warnings and leave the
responsibility to the user to halt execution if certain Warnings exists?

Kind Regards

Mikael (gwendo)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20110824/a594714f/attachment.html 


More information about the rules-dev mailing list