How to use it:
1. Download the Asset Levenshtein Distance of format OAP (Outsystems Application Package) - there is one function Calculate that will result on the distance (differences) of two source strings. Run the OAP to be installed in your environment.
2. In addition to the asset, there is also the Demo in the same format of the asset - OAP (Outsystems Application Package) - download it and open in your environment to install it.
This asset usually used in some scenario, for example in Risk Management in Banking to check whether the same customer name has applied for a credit more than once or not.
A function calculate has 3 parameters:
1. source1 is the first string input to compare
2. source 2 is the second string input to compare
3. casesensitive is a boolean to determine whether the case of the characters embodied the source strings are considered.
4. a result in an integer type that is calculated based on this algorithm
In case source1 is empty, the result will be the length of source 2, vice versa.