Tata Satish Babu (TataS472)

TataS472 Member since 2012 7 posts
Posted: November 6, 2020
Last activity: May 12, 2021
Posted: 6 Nov 2020 17:40 EST
Last activity: 12 May 2021 9:18 EDT

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.

anyone had this kind of issue with apache commons ? 

Thank you


***Edited by Moderator: Pooja to change category from General to Product, add product tag, add platform capability tag***
Pega Platform Low-Code App Development