You can write a custom operator which would let you write
ObjectTypeB( name equalsignorecase foo.name ) )
You can choose a shorter name for the operator ;-)
-W
On 06/07/2012, abhinay_agarwal <abhinay_agarwal(a)infosys.com> wrote:
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-tp4...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users