Odd behavior with the or operator.

The rule is:

package com.sample
import com.sample.DroolsTest.Message;

rule "Hello World"
  when
    m : Message( status == Message.HELLO ) || Message(
message == "Hello World" )
  then
    System.out.println( "fired" ); 
end

One Message object is asserted. The rule would fire twice.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to