Extensibility through JOLT

JOLT stands for JSON Language for Transform. It is a transformation library that allows you to convert one JSON structure to another by using its specification file. The JOLT specification file allows data extensibility during transformation. It allows Party Microservice to retrieve and save the extension data along with the party data from the back office.

The two different approaches for the data extensibility by using JOLT are as follows :

  1. Adding directly into the transform fields without using any external JSON transformation file.

    The following InvalidEditCheck field is available in the back office but not in the Microservice. It is mapped to the extension data of Party Microservice along with the field name, PartyMSInvalidEditCheck.

    Jolt transformation fields.

    "@(3,CoCode)": "tmp.[&2].coCode",
    "StartDate": "tmp.[&2].startDate",
    "InvalidEditCheck": "tmp.[&2].extensionData.PartyInvalidEditCheck"

    Here, the field from back office is transformed to map in the extension data of Party Microservice, with the field name, PartyInvalidEditCheck. The field must be mentioned as extensionData.fieldName.

    Sample

    CUSTOMER_GROUPEvent_GroupMembers.json

  2. Using the frame EVENT_<ENTITY>Extn.json, external JSON file.

    CUSTOMEREvent_PartyExtn

    [
        {
            "operation": "shift",
            "spec": {
                "payload": {
                    "Introducer": "extensionData.PartyIntroducer"
                }
            }
        }
    ]

    Here the back office field introducer is saved to the extension data with the field name, PartyIntroducer.

    Sample

    CUSTOMEREvent_PartyExtn.json


Field Name
|
Application/Table name

Temenos Headquarters SA
2 Rue de l'Ecole-de-Chimie
CH - 1205 Geneva
Switzerland

Copyright © 2020- Temenos Headquarters SA

Published on :
Tuesday, May 23, 2023 9:36:03 PM IST