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
FromYesDefines the field name before mapping.
ToYesDefines the field name after mapping.
PrecedenceYesDetermines the order in which this mapping is applied relative to others.
Function typeYesDefines the type of mapping. Needs to be "Numeric functions".
FunctionYesDefines the mapping type. Needs to be "calculation"
CalculationYesDefines the operator.
FactorYesDefines 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.