[rules-users] not matches

RichardA Richard.Ambridge at sun.com
Wed Dec 16 11:07:17 EST 2009


In drools5 I have taken the standard Eclipse demo project, and changed the
Sample.drl to contain only the following:


package com.sample
 
import com.sample.DroolsTest.Message;
 
rule "Hello World"
	when
		m : Message( message not matches "^TEST" )
	then
		System.out.println( "adding TEST to message" ); 
		m.setMessage( "TEST set" );
		update( m );
end




When I run this, drools gets into an infinite loop

This used to work in drools4.

Any ideas?
Thanks
-- 
View this message in context: http://n3.nabble.com/not-matches-tp92276p92276.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list