Skip to main content

Veritran Docs

Constants

Constants are reference values used within the logic of rule configured for a decision. These reference values can be related (or not) to the dimensions of a decision. All builders (either senior or junior) are allowed to configure and modify constants since they do not break the contract but change the logic.

Note

In addition to builders, certain non-technical profiles from the client may have permissions to edit constants and modify their reference values according to the different campaigns within a solution (for example, if the client decides to change the conditions to obtain cashback in a loyalty program).

There are three types of constants: Value, Array or Matrix, and their values can have one of three data types: number, string (alphanumeric value) or boolean (true or false). Learn more about each of them in the list below.

  • Value: Unique constant that is not related to a dimension. For example, if the client defines that, on a specific date such as the Bank inauguration date, all clients in its loyalty program obtain 200 points (number data type).

  • Array: Constant that requires a reference dimension and generates an array of values, where there is one array value per each dimension value. For example: the dimension Profile has three values: SIlver, Gold and Black. The array constants are 100 for the Silver dimension, 150 for the Gold dimension and 200 for the Black dimension (see the table below).

    Table 13. Dimension: Profile

    Silver

    Gold

    Black

    100

    150

    200



  • Matrix: Constant that requires two reference dimensions and generates an array of values, where there is one array value per each dimension value.

    Table 14. Dimensions 1: Profile - Dimension 2: Transaction Type

    Silver

    Gold

    Black

    Payment

    100

    150

    200

    Transfer

    150

    200

    250

    Foreign Currency Purchase

    100

    200

    300



Navigate the Constants page
CONSTANTS_PAGE.gif

The Constants page contains all the constants created for the client. From this page, you can see the details of the constants created by you and your team and, if necessary, edit them.

To find a constant, go through the cards list or enter the constant name or tags in the search bar and press Enter in your keyboard. Each decision card shows its name, when it was last updated and its tags (if any). When you click a decision, it opens and you can see the configuration of the decision contract and rules.

In addition, you can import others created in a different environment; for example, a constant created in a testing environment that you need to use in your production environment. You can also export constants to your device (in JSON format) to then import them in other environments.

Read Create or Edit a Constant to learn how to configure a new constant or modify the configuration of an existing one.