Robotron Datenbank-Software GmbH Firmenlogo
MIT DATEN MEHR BEWEGEN.
🇩🇪 🇬🇧

Dedup

Function Description and Usage

The Deduplicate block (Dedup) discards messages that contain the same information as the previous message. The check can be masked, i.e. restricted, using the Watch parameter.

The block is used to filter out redundant data/messages.

The parameters described in the following table can be found in Figure 1.

Table 1. Configuration Parameters Dedup Block
ParameterDescription

Name

Name of the block instance.

Into

Name of the block instance of the subsequent block to which output messages should be forwarded.

Overwrite Header Scope with

string, name for new scope designation (optional). Used to overwrite the header field Scope. The option is inactive if the string is not present or empty.

Watch

string or string array, Watch is the expression for selecting the check criterion in the message. If consecutive messages are equal at position(s) "x", the message is discarded.

To access message keys containing a dot ".", e.g. key Data.Value, access via the syntax ['Data.Value'] is required.

Example Configuration

The described parameters are applied by example in Figure 1.

dedup
Figure 1. Configuration of the Dedup Block

Configuration in JSON

"Dedup_Block": {
    "type": "Dedup",
    "Watch": [
      "statuscode"
    ],
    "Settings": {
      "OverwriteHeaderScopeWith": ""
    },
    "into": [
      "outDedup"
    ]
}