[rules-users] Execution problems with (or and (and

vdelbart delbart.v at mipih.fr
Thu Aug 30 05:28:13 EDT 2007


Hi,

I have a problem with this execution :

rule "Your First Rule"
  
when
 (or  
  not Venue()
 (and v:Venue()
        l:ListeSousVenue()
        p:Param()))
then 
  System.out.println("OK - 1");
end

rule "Your Second Rule"
 
when
  (or
  not Venue()
 (and p:Param()
        l:ListeSousVenue()
        v:Venue()))
then 
    System.out.println("OK - 2");
end

In my WM, I have a Param and a ListeSousVenue but no Venue
But after execution, I have just this result :
"OK - 1"

Why the second rule doesn't execute ?

Thanks,

Vdelbart
-- 
View this message in context: http://www.nabble.com/Execution-problems-with-%28or-and-%28and-tf4352997.html#a12403501
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list