Dynamic Variables

The dynamic variables functionality enables dynamic configuration parameters.

Example
You have a QR-code scanner reading the QR-code placed on a product containing the product ID. This parameter has to be stored in the database, and you want to tag it with additional information from another system, in this case from a REST endpoint. So, the REST endpoint path has to be changed each time, a new product was scanned (First scan: path=/api/products/12345 and second scan: path=/api/products/54321).

This can be achieved by using the dynamic variables functionality, which links the value of a configuration parameter to a value received from a variable.

For marking a dynamic variable, the following syntax has to be used:

Start Marker: ${

Syntax: module_id.key (for global data), env.key (for environment variables), or local.key (for local module data** - only for tag, processor, and output modules)

End Marker: }

You have to replace the placeholders with:

  • module_id: The id of the module whose data should be used.
  • key: The key name whose data should be used.

** The current data object available in the according module.