Skip to main content Skip to complementary content
Close announcements banner

Defining contexts

Procedure

  1. Open the Job in the design workspace and go to the Contexts view.
    If the Contexts view is not displayed, select Window > Show view > Talend Contexts to open the Contexts view in the Integration perspective.
  2. Click the [+] button at the top right corner.
    The Configure Contexts dialog box opens and a context named Default is created by default.
  3. Select the default context and click Edit to rename it, Prod in this example. Click OK.
  4. In the open dialog box, click New... and enter Test in the New Context dialog box, click OK.
  5. Select the check box preceding the context you want to set as the default context.
    You can also set the default context by selecting the context name from the Default context environment list in the Contexts tab view.
    If needed, move a context up or down by selecting it and clicking the Up or Down button.

    Example

    In this example, set Test as the default context and move it up.
  6. Click OK to validate your context definition and close the dialog box.
    The newly created contexts are shown in the context variables table of the Contexts view.
  7. Repeat the above steps to create as many new contexts as needed.
    If you do not want to define the values of each new context from scratch, you can create the first context and define all its values, as when you create a new one all the parameters of the context selected as default are copied to the new context. You can then modify the values of the new context as needed.

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 – let us know how we can improve!