Posted: 12 May 2020 18:16 EDT Last activity: 13 May 2020 6:21 EDT
equalsIgnoreCase is not able to compare string values.
I am comparing 2 string values using equalsIgnoreCase function, But the function is returning the result as false even though the both values are equal.When I tested same values in the Expression builder it is returning true.
I have attached screen shots of captured values of both the values in tracer while we are running that rule. Please help me to resolve this issue.
Note: I need to compare these values along with Dot as shown in the attached images.
Please make sure you don't have any leading spaces added to your parameters use trim function within your expression to eliminate the leading spaces.
Pega uses Java equalsIngnoreCase Method in this function which validates the leading spaces as well. Looking at your pamameters i assume you must be forming this prior using a text property. so please make sure there are no extra spaces added to it.