Match Code Generator: Business Function

Using a Business Function match code generator provides the ultimate flexibility to ensure that two records are compared according to specific needs.

While a Business Function Match Code Generator may take any input, it must output List<String>.

Matching organization golden records based on main address location distance

In the following example, a large organization owns multiple street addresses and has access from several different roads. The Business Function Match Code Generator is used to ensure organizations are compared when their main address is less than 500 meters apart.

  • The core JavaScript functions are provided by the GeoMatchingLibrary, a JavaScript library available from CMDM Enablement.

  • The business function returns a number of match codes, and therefore has the return type List<String> and the input parameters are the latitude and longitude of the main address.

Configuring a Business Function Match Code Generator

  1. Obtain latitude and longitude from the Main Address. During import, the main address is enriched by Loqate as part of the Standardization Business Action, which among other features adds latitude and longitude coordinates for the Main Address data container. This standardization is configured on the inbound endpoint.

    For more information, refer to the following topics:

    • Creating an Inbound Integration Endpoint in the Data Exchange documentation (here).

    • Web Service Endpoint - Match and Merge in the Data Exchange documentation (here).

    • Loqate Integration in the Data Integration documentation (here).

  2. Configure Data Elements in the Match Criteria, using Business Function Normalizers to get the latitude and longitude from the Main Address.

    For more information, refer to the Data Element: Business Function Normalizer topic here.

  3. Configure the Data Elements as shown below:


  4. Create the Business Function Match Code Generator and select the Data Elements as input parameters.

The image below shows the configuration for this example organization matching. The address distance is only used for generating match codes to ensure comparison. It does not affect the final match scores, as no Matcher evaluates the distance, and no Rules apply the distance between these main addresses.