Posted: 6 Nov 2020 17:40 EST Last activity: 11 Nov 2020 16:59 EST
Not able to use the method getFuzzyDistance from "org.apache.commons.lang.StringUtils" apachage commons package
Pega has the function "stringDistance" which has getLevenshteinDistance method in it. Currently we are using this function to calcuate string matching percentage. But we wanted to use getFuzzyDistance method as well from the same package. So when I tried to create function to use the getFuzzyDistance method getting below error while compiling the function.
"The method getFuzzyDistance(String, String) is undefined for the type StringUtils"
I have added apache commons package "org.apache.commons.lang.StringUtils" in Library and generated the Library.
Please refer below link to know about Levenshtein Distance and Fuzzy Distance.