Regular Expression

Regular Expression functionality helps to validate IRIS API payload. It loads all the values from the config microservices and place it in the cache before invoking the Transact API request.

This section explains how to create a new Regular Expression validation, search and edit an existing Regex.

Refer Regex Validation of Version Fields to know more about configuration of Rule Engine, Microservice generic config and IRIS setup.

Creating and Editing Regular Expression

This section details about creating and editing Regular Expression.

Creating Regular Expression

To create a Regular Expression,

  1. Navigate to APIs > Regular Expression, on the left pane of the dashboard.
  2. Click Add Extension button on the Search page.
  3. Enter the following details in the New API Extension screen.
Field Action
Regular Expression ID This is a mandatory field. Enter a unique regex ID.
War Name Select the relevant war name in which the Transact API is bundled.
Regular Expression Type

Select type of regex validation you are trying to do on an API field.

There are 3 types of Regex Validation are:

  1. Regular Expression
  2. Date Format
  3. Simple Validation

Based on type selected, rest of the fields given in the table are displayed.

Date Format Validates the date. This field is displayed when Regex type is Date Format.
Regular Expression Pattern Enter regular expression pattern to be matched. This field is displayed when Regex type is Regular Expression.
Simple Validation

It is an alternative for regex or can be combined with regex for more detailed configuration.

This section is displayed when Regex type is Regular Expression or Simple Validation.

Type

Select one of the following from the dropdown:

  1. DIGIT_ONLY – for digits. If selected, Min Length, Max Length, Min Limit and Max Limit fields are displayed.
  2. ALPHA_ONLY – for alphabets. If selected, Min Length and Max Length fields are displayed.
  3. ANY – for alphanumeric. If selected, Min Length and Max Length fields are displayed.
Min Length Enter the minimum API payload field length
Max Length Enter the maximum API payload field length
Min Limit Enter the minimum API field limit
Max Limit Enter the maximum API field limit
  1. Enter the mandatory fields and any one of the Regular Expression Type validations, that is, Regular Expression, Date Format or Simple Validation.
  2. Click the Create button to create and store the Regular Expression rule in Generic Configuration Microservice.

Editing Regular Expression

To edit an existing Regular Expression,

  1. Navigate to APIs > Regular Expression, on the left pane of the dashboard.
  2. Search for the Regex ID to edit the validation configurations.


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 7:35:35 PM IST