Skip to main content Skip to footer

Search Crosser Knowledge Base

Dynamic Message Filters

Message filters are used in many use cases to decide whether a message should be allowed to enter the module or not. Most often this is based on a property having a specific value.

In some situations you might want to allow the message to enter a module if values from different properties match certain criteria. Use the filter type ‘Property’ to reference values from other properties instead of specifying the value in the filter in a ‘hard-coded’ way.

The example below shows how to set a new property ‘start’ to true if the values of ‘var_1’ and ‘var_2’ are equal.

Incoming message:

{
  "crosser": {
    "success": true
  },
  "var_1": 12,
  "var_2": 12
}

Filter:

Crosser Example Dynamic Filter

Output message:

{
  "crosser": {
    "success": true
  },
  "start": true,
  "var_1": 12,
  "var_2": 12
}

Tip: You can also bypass modules if filters do not match by checking the checkbox ‘Bypass message to next module in flow if filters does not match’.

Crosser Example - Bypass filter

About the author

David Nienhaus | Senior Solution Engineer

David is a Senior Solution Engineer at Crosser. He has over 10 years experience working with software integration and digitization projects for critical infrastructure.
His engineering background gives him the understanding and focus needed to solve customer use cases in the most efficient and successful way.