[rules-users] Help please!!!
Toni Rikkola
toni.rikkola at gmail.com
Mon Jun 25 02:23:53 EDT 2012
Must be a bug, perhaps verifier thinks these two rules are in different packages.
I can take a look at this next week.
Toni
On Jun 21, 2012, at 4:59 PM, paco wrote:
> 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/Help-please-tp4018136.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
More information about the rules-users
mailing list