Rule-Based Mappings

Supported Rules

When the mapping type Rule based is selected, the transformation of the payload is performed by applying the defined mapping rules.

The following mapping rules are supported:

Rule

Description

Example

maps

Direct attribute mapping

expressions

Expression with placeholders

constants

Constant mapping

choices

Attributes and Values mapping

Each of the rules defined for the resources type operations will be evaluated and applied depending on the request content:
  • Rules are grouped per category (maps, expressions, constants, choices).

  • Rules can be defined globally for each request and response or defined at the event type level (e.g. EVENT-SITUATION.CREATED).

In maps, expressions and choices, nested properties can be referenced using the dot notation (i.e. the separator '.'). For instance, the source value "tags.serviceType" is used to refer to the property "serviceType" located under the property "tags".

For example the following content defines the mapping to be applied for the event type "EVENT-SITUATION.CLOSED":

Complete Example

An example of rule-based mapping format is defined below.