[
https://issues.jboss.org/browse/JBRULES-3484?page=com.atlassian.jira.plug...
]
Prasanna Venkataraman commented on JBRULES-3484:
------------------------------------------------
Hi Toni,
Here is the sample rule which i have used,
#created on: Apr 23, 2012
package com.lsi.validation
#list any import classes here.
import com.lsi.validation.Server
#declare any global variables here
rule "rule 1"
when
$server : Server(processors==2, memory==1024)
then
System.out.println("rule");
end
rule "rule 2"
when
$server : Server(processors==2, processors!=2)
then
System.out.println("rule")
end
rule "rule 3"
when
$server : Server(processors==2, memory==1024)
then
System.out.println("rule 3")
end
In the sample given above, Rule 1 and Rule 3 are redundant rules.
Thanks,
Prasanna.
Redundancy check option not working in Drools Verifier
------------------------------------------------------
Key: JBRULES-3484
URL:
https://issues.jboss.org/browse/JBRULES-3484
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-verifier
Affects Versions: 5.3.0.Final
Environment: Apache Tomcat 7.0, Windows 7
Reporter: Prasanna Venkataraman
Assignee: Toni Rikkola
Labels: new_and_noteworthy, not
I am using Drools-Verifier to validate the rules for any redundancy. I have explicitly
given the redundant rule to test it. But I didn t get any warning stated that there are
duplicate rules.
I did some research and found that the dependent rules "Find Literal
restriction" and "Find Variable restriction" are being removed (file
org/drools/redundancy/restriction.drl).
Kindly fix the issue so that we can continue with Drools-Verifier.
Thanks,
Prasanna.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira