Skip to main content

Context Variables in Mediation Routes

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

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!