Re: [rules-users] Help please!!!

2012-06-26 Thread paco
Hi Toni,

It's very interesting to know it. It is possible that it is a bug. I did the
test several times but the results are the same.

Best regard 

--
View this message in context: 
http://drools.46999.n3.nabble.com/Help-please-tp4018136p4018245.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Help please!!!

2012-06-24 Thread Toni Rikkola
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@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Help please!!!

2012-06-21 Thread paco
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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users