Skip to main content Skip to footer

Search Crosser Knowledge Base

Configure and parametrize your Flow using Message Template Module

Using parameters to adapt your flow to different environments—or to easily introduce new credentials and other updated settings—is a common and effective practice. However, as your flow grows and includes more modules, the number of parameters you need to manage can also increase.

For modules that support retrieving settings from the incoming message, there’s a helpful technique to streamline this process: You can insert a Message Template module into your flow to store the desired settings. The payload from this module will be passed along the flow, allowing downstream modules to automatically use those settings.

This approach enables you to consolidate multiple configuration parameters into a single JSON object, which can be managed via one parameter.

For example, if your flow reads data from an OPC UA server and publishes it to an MQTT broker, you can use the Message Template module to inject all the necessary configuration settings directly into the flow.

Crosser Example

The content of the Message Template will be sent into the flow every time it is triggered. The payload of the properties can then be used in different modules.

Crosser Example

Tip: Make sure to check the module documentation to understand if the setting can be fetched from the incoming message.

About the author

David Nienhaus | Senior Solution Engineer

David is a Senior Solution Engineer at Crosser. He has over 15 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.