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
That's filtering on two columns, its like doing this in SQL:
select * from Message, Message
Not what most people want. This hasn't changed in any of the releases
in Drools 3.0
Mark
Yuesong Wang wrote:
Thanks for the great job on RC2. Solved a lot of my
problem :)
The following rule, however, does not work in RC2
anymore...
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
So the field constraints have to be in the sample
column? like
m:Message(status==0, message=="Hello World")
That is probably no good, especially for someone who
wants to use DSL and map individul conditions to
separate sentences.
Yuesong
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com