Skip to main content

Managing Mappings

Each mapper contains one or more mappings — rules that define how individual data fields are transformed.
Mappings control what happens to each field when a message is converted from the input (From) type to the output (To) message type.

Each mapping appears in the Mappings List, where you can edit, duplicate, or delete it as needed.

Mapping list


Adding Mappings

To add a new mapping:

  1. Click the Add Mapping icon.
    Add mapping icon
  2. Fill in the required fields and choose the appropriate function type.

Common Mapping Fields

All mappings in 1Gateway share a base set of attributes that define how and when they are applied.

Open mapping example

AttributeRequiredDescription
fromYThe message field name from which data is mapped.
toYThe message field name to which data is mapped.
precedenceNDetermines the order in which mappings run. Lower numbers execute first. Default: 50. If multiple mappings target the same field, the one with the lowest precedence value takes effect.
Function typeYThe category of function used for transformation (e.g., String functions, Numeric functions).
functionYThe specific transformation method applied (e.g., Lowercase, Replacement, Calculation).

In addition to these, certain mapping types include additional fields depending on the selected function.
For details on each function and its parameters, see the corresponding mapping type documentation.


Precedence Example

In the example below, two mappings target the same To field but have different precedence values:

Mapping precedence example

Because 40 is lower than 50, the second mapping (severity → ci/severity) takes priority.

note

Precedence values don’t need to be unique.
If two mappings share the same precedence, their execution order is non-deterministic (random).