Skip to main content

Calculation

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:

AttributeRequiredDescription
FromYDefines the field name before mapping.
ToYDefines the field name after mapping.
PrecedenceNDefines the precedence used when mapping.
Function typeYDefines the type of mapping. Needs to be "Numeric functions".
FunctionYDefines the mapping type. Needs to be "calculation"
CalculationYDefines the operator.
FactorYDefines 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.