Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Fifth

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 12

CSD Onboarding:

Extensibility Framework Features

Information in this document is subject to change


without notice.
No part of this document may be reproduced or
transmitted in any form or by any means, for any
purpose, without the express written permission of
TEMENOS HEADQUARTERS SA.
© 2022 Temenos Headquarters SA -
all rights reserved.
CSD Onboarding – Extensibility Framework

Table of Contents

1 Introduction.............................................................................................................................................................4
2 Applications............................................................................................................................................................4
3 Prerequisites............................................................................................................................................................4
4 Data Addition..........................................................................................................................................................4
4.1 Creation of virtual table......................................................................................................................................5
4.2 Python Extension:...............................................................................................................................................8
5 UXPB Extension...................................................................................................................................................10

Internal Use
CSD Onboarding – Extensibility Framework

Template History

Author Version Date Description

Document History

Author Version Date Description

Mahalingam Vignesh N P 0.1 13 Apr. 24 Initial

Comments:

Internal Use
CSD Onboarding – Extensibility Framework

1 Introduction
This document contains detail about the feature of Extensibility Framework, which includes the three main microservices
widely used, as well as API extension and Transact extension.

2 Applications
1. Modal Bank 2307
2. Docker 4.2.0
3. Workbench of 2307
4. Ms-genericconfig-helm-postgres 202307.0.2
5. Ms-virtualtable-helm-postgres 202307.0.6
6. Ms-adapterservice-helm-postgres 202307.0.3
7. Ms-adapterservice-package-docker 202307.0.3

3 Prerequisites
The microservices, transact and workbench should be up and running.
Note: The default username and password of workbench are user@temenos.com and User123!

4 Data Addition
The microservice Virtualtable is used to store data in form of JSON. In addition, it also provides extension of adding
python script during various operation such as creation, retrieval, updating and deletion of the data. This script can be
triggered before / after the above-mentioned operation with preprocess and postprocess method respectively.
To create a virtual table, schema should be posted. JSON schema is vocabulary of JSON data, which help in validation
and consistency. Below is a sample JSON schema.

{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "accountTable",
"type": "object",
"properties": {
"customerId": {
"type": "number"
},
"currency": {
"type": "string"
}
}
}

In above JSON Schema, it depicts that the JSON of type object has “customerId” and “currency” keys. Of two
keys, the customerId is of type number and the latter is a string.

Internal Use
CSD Onboarding – Extensibility Framework

4.1 Creation of virtual table


Workbench provides tool to create Virtual table.
By selecting either of the two highlighted below, tab to create virtual table will be launched.

The screen will list the existing table and also option to create a new virtual table.

Internal Use
CSD Onboarding – Extensibility Framework

The tables in virtual table micro service are grouped based on domain. Below a virtual table named “accountVt” is
created under domain party. Domains are enumerated, which can be selected from the list provided.

Below lies tool to add extension scripts.

Internal Use
CSD Onboarding – Extensibility Framework

The table will be listed.

From R24, there is a tool to perform operations of virtual table. Here, APIs will be used to perform those various
operations.
To create record, the below API is used.
<Base path of micro service virtual table>/v1.0.0/domains/<domain name>/virtualTables/<table name>/records

ID of the record should be passed.


The actual data to be posted, should present within the data tag as shown above.
Below are list of Virtual table APIs and their purpose.

Purpose API

To create a new record in a URL: <Base path of micro service virtual table>/v1.0.0/domains/<domain
table. name>/virtualTables/<table name>/records
METHOD: POST
BODY:
{
“data”: {<The record to be stored in the virtual table>},
“recordId”: “”
}

To retrieve a single record URL: <Base path of micro service virtual table>/v1.0.0/domains/<domain
from a table. name>/virtualTables/<table name>/records/<ID of the record>
METHOD: GET

To retrieve all records URL: <Base path of micro service virtual table>/v1.0.0/domains/<domain

Internal Use
CSD Onboarding – Extensibility Framework

from table. name>/virtualTables/<table name>/records


METHOD: GET

To update a record in the URL: <Base path of micro service virtual table>/v1.0.0/domains/<domain
table. name>/virtualTables/<table name>/records/<ID of the record>
METHOD: PUT
BODY:
{
“data”: {<The record to be stored in the virtual table>},
“recordId”: “”
}

To delete a record from a URL: <Base path of micro service virtual table>/v1.0.0/domains/<domain
table. name>/virtualTables/<table name>/records/<ID of the record>
METHOD: DELETE

4.2 Python Extension:


Python script can be added to the virtual table schema, to be triggered during creation, retrieval, updating or deletion of
record.
Below is a python script, attached to virtual table “accountVt”.
The below logic is added in the preprocess method of the script. This will default the currency to USD.

A new record is created in the table, without adding the currency.

Internal Use
CSD Onboarding – Extensibility Framework

Currency will be defaulted by the python script. This can be verified by retrieving the record.

Below is a sample python script, with detailed comments.

Note: The print statement logged here can be viewed in pod named Api of virtual table.

Internal Use
CSD Onboarding – Extensibility Framework

5 UXPB Extension
Phyton extensions can be added to UXPB screens like version, enquiry, application, etc. This is like the python script
attached against virtual table, except for the temenos package imports. To add the python script, launch workbench and
select python script to create python script.

Ensure to set Extension type as UX Resource Extension and provide a name. Create a preprocess and/or post process
method and save it.

Internal Use
CSD Onboarding – Extensibility Framework

Navigate to UX Resource Extension tab.

Model Type – Version / Application for which python script needed to be added.
Resource Name – Name of the Version / Application
Function – INPUT / AUTHORIZE / DELETE / REVERSE – during which of the operation, the script has to be
triggered.
Operation Name – It is unique reference, created by user, which allows generic config to map the resource to the python
script.
Script Name – The script created at previous screen. In addition, the user can also update scripts here.

Internal Use
CSD Onboarding – Extensibility Framework

Inputting the record with the version CUSTOMER,CSD.EF.TRAINING, without Mnemonic.

Mnemonic defaulted, as per python instruction provided.

Below is a sample python script, with detailed comment.

Note: The print statement logged here can be viewed in server log of JBOSS (Or any application server, where
deployed)

Internal Use

You might also like