Calculations are defined in the cases where the value of a message field needs to be converted from one unit to another. To define a calculation mapping the Function type needs to be set to "Numeric functions" and the function needs to be set to "calculation". The attributes that need to be set in a calculation mapping are:

Attribute

Required

Description

from

Y

Defines the field name before mapping.

to

Y

Defines the field name after mapping.

precedence

N

Defines the precedence used when mapping.

Function type

Y

Defines the type of mapping. Needs to be "Numeric functions".

FunctionYDefines the mapping type. Needs to be "calculation"

calculation

Y

Defines the operator.

factor

Y

Defines the second operator (the first one being the field value).

  • Add: field_value + factor
  • Complement: field_value - factor
  • Divide: field_value / factor
  • Multiply: field_value * factor
  • Reciprocal: factor / field_value

For example, if there is an incoming message with the value in Gigabytes and another product needs the value to be in Megabytes, a calculation is needed, like so: