[rules-users] Check problems of conflicts in the rules

paco fifi_njikam at yahoo.fr
Thu Jun 14 07:53:03 EDT 2012


I want to detect the conflict between the rules with Drools Verifier. For
example the first condition of the second rule is present in the first rule
and the actions to perform are the same in both rules as they demonstrate in
the following case. It works very well when these rules belong to the same
drl file. 
--------- fichier  a.drl---------------------------
rule "a"
	no-loop true
	ruleflow-group "group1"
	dialect "mvel"
	when
		A==0
	then
		Action1
end
rule "b"
	no-loop true
	ruleflow-group "group1"
	dialect "mvel"
	when
		A==0 && B==1
	then
		Action1
end

The problem arises when I separated its rules and that I have to put each in
its own file
----------------      a.drl----------------
rule "a"
	no-loop true
	ruleflow-group "group1"
	dialect "mvel"
	when
		A==0
	then
		Action1
end

------------------b.drl--------------------
rule "b"
	no-loop true
	ruleflow-group "group1"
	dialect "mvel"
	when
		A==0 && B==1
	then
		Action1
end
I can no longer detect this problem with Drools Verifier.
Does anyone ever encountered this problem?
How can I do to write a small program to audit if this case?


--
View this message in context: http://drools.46999.n3.nabble.com/Check-problems-of-conflicts-in-the-rules-tp4017952.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list