Context Variables in Mediation Routes - 7.3

Best Practice: Talend ESB

Version
7.3
Language
English
Product
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
Module
Talend ESB
Talend Studio
Content
Design and Development
Last publication date
2024-02-06

Context variables should be used in place of hardcoded parameters across the ESB system. Context groups should be set up in the development environment to ensure that common variables are reused by all developers. Different context groups should be set up to contain related variables.

For example, there should be a context group that will only contain variables directly related to the error and/or logging handling functionality. These variables should be used by all Routes. But there should also be contexts set up for other groups that Routes can fit into like project, business area, Route types, etc. These should be decided upon as early as possible. Developers can set up context variables that are specific to individual Routes, but this should only be done where absolutely necessary.

The naming convention for context variables should be “meaningful names in lower camel case”.