[rules-users] Drools 5.0 concat string in matches of regular expression

Lukas Svoboda lukasvoboda at googlemail.com
Wed Jan 13 10:10:28 EST 2010


How can I get drools 5.0.1 compiled if I have regular expression matches part
concat from static text + dynamic string?

See example:
		onBlackList : ArrayList( size > 0 ) 
               from collect( BlacklistItemDRL( blacklistItemType matches
"MAIL_DOMAIN" && customer.currentContactInformation.partyEmailAddress.email
matches (".*@" + blacklistItemValue + ".*") )
                             from blackList.getItems())


Problem is when I'm trying to do email matches (".*@" + blacklistItemValue +
".*"), which worked in drools 4.0.7 but can't be compiled now in 5.0.1

Is there any way how to use in matches part of reg exp dynamic property
value plus static string?

Thanks,
Lukas
-- 
View this message in context: http://n3.nabble.com/Drools-5-0-concat-string-in-matches-of-regular-expression-tp119197p119197.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list