[rules-users] How to use OR-Operator

DroolersEye sprabakkar at gmail.com
Mon Jul 25 13:27:11 EDT 2011


you can create two rule...

rule "or_conjunction_one" 
    when 
           eventA     :  EventA(status == true)     from entry-point 
"StreamA" 
    then 
           System.out.println("A"); 
end 

rule "or_conjunction_two" 
    when 
           eventB     :  EventB(status == true)     from entry-point 
"StreamB" 
    then 
           System.out.println("B"); 
end 


-----
with kind regards,

--
View this message in context: http://drools.46999.n3.nabble.com/How-to-use-OR-Operator-tp3197784p3198114.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list