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.
|
Rule |
Description |
Example |
|---|---|---|
|
maps |
Direct attribute mapping |
|
|
expressions |
Expression with placeholders |
|
|
constants |
Constant mapping |
|
|
choices |
Attributes and Values mapping |
|
-
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.