[rules-users] matches doesn't catch rule.

2010-06-24 Thread hensor

I'm trying to create a rule where I want to match if a variable matches one
or more words.

This is my rule:
m:myObject(variable matches WORD 1|WORD 2)

but it doesn't catch any instance where variable is either WORD 1 or WORD 2.
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/matches-doesn-t-catch-rule-tp919334p919334.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] matches doesn't catch rule.

2010-06-24 Thread Jared Davis

try

m:myObject(variable matches (WORD 1|WORD 2)) 
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/matches-doesn-t-catch-rule-tp919334p919402.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users