Context Variables - 7.2

Best Practice: Talend ESB

EnrichVersion
7.2
EnrichProdName
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
EnrichPlatform
Talend ESB
Talend Studio
task
Design and Development

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”.