Product Features
...
Analytics
Statistical Functions

Change

3min

The Change processor enables the modification of incoming messages based on specific parameters.

  • It is useful for both direct value assignments and complex string manipulations.
  • With various operating modes, you can customize updates to meet your unique requirements, enhancing data handling and organization.

Change Overview

  • Modifies content of incoming message.
  • If Change mode field is set to "set", this processor will assign Value to message's Field.
  • If Change mode field is set to "change":
    • If Field is of type string or JSON both Value and Replace Value will be converted to string and processor will look for Value substrings in Field and replace all occurrences of them with Replace Value string.
    • For all other types processor will look for complete match between Value and Field. If match found Replace Value will be set to Field.
  • If Update timestamp option is set processor will add current timestamp to a message. It will happen after change-processing.

Change Parameters

Parameters

Details

Mode

This parameter determines the method of modification, specifying whether to set a new value or change an existing one. Options includes:

  • set
  • change
  • delete
  • move

Input Field

This parameter specifies the message field that will be targeted for modification.

Input Value Type

This defines the data type of the value that is being inputted.

Input Value

This parameter contains the actual value that will be used as the basis for changes or replacements.

  • In set Mode, its value to set.
  • In change Mode, its value to search.

Replace With Value Type

This indicates the data type of the value that will replace the existing content within the input field.

Replace With Value

This parameter specifies the new value that will replace the designated content if a match is found.

Move To Field

This parameter allows the processor to relocate the modified content to a different specified field within the message.

Update Timestamp

This option enables the addition of the current timestamp to the message, documenting when the changes were made.

Document image


Note: When creating an analytics flow with Change processor, refer the Use the Change Processor Function guide for more details.