[rules-users] Simple rule worked in 4.0.7 and failed in 5.0.1

Corneil du Plessis corneil at tsctech.com
Thu Jun 25 03:52:15 EDT 2009


I ran into some problems where a fairly simple rule fails in 5.0.1 and
worked in 4.0.7.

I have created an issue on JIRA
https://jira.jboss.org/jira/browse/JBRULES-2136 and was wondering if
someone else has come across that same type of problem.

The rule is:


package org.drools.rules.test
import org.drools.rules.test.SimpleStringType
rule "SimpleKeywordTest"
	dialect "java" 
when
	$_theFact : SimpleStringType( stringValue matches ".*\s(ADDR)\s.*|(ADDR)\s.*|.*\s(ADDR)" )
then
	$_theFact.setValid(false);
end


Whenever the stringValue contains something like 'MY ADDR' the rule
should fire but it doesn't in 5.0.1 

Corneil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090625/b8aed57c/attachment.html 


More information about the rules-users mailing list