[rules-users] comparing strings using ignore case

abhinay_agarwal abhinay_agarwal at infosys.com
Fri Jul 6 09:41:41 EDT 2012


hey,

is there a method by which i can compare two string ignoring there case ??

for me writing the code as

foo : ObjectTypeA()
bar : ObjectTypeB( name.equalsIgnoreCase( foo.name ) )

is a long process because i m comparing the values of string which are
present inside a map..and there are loads of comparision..

$h : HashMap(this["Account_Ownership_Type"]=="Single")

Does drools have an easier way for ignore case comparision ??

Thanks,
Abhinay

--
View this message in context: http://drools.46999.n3.nabble.com/comparing-strings-using-ignore-case-tp4018504.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list