How to apply Repository context variables to a Job

Talend Open Studio for ESB User Guide

EnrichVersion
6.4
EnrichProdName
Talend Open Studio for ESB
task
Design andĀ Development
EnrichPlatform
Talend Studio

Once a context group is created and stored in the Repository, there are two ways of applying it to a Job:

How to drop a context group onto a Job

To drop a context group onto a Job, proceed as follows:

  1. Double-click the Job to which a context group is to be added.

  2. Once the Job is opened, drop the context group of your choice either onto the Job workspace or onto the Contexts view beneath the workspace.

    The Contexts view shows all the contexts and variables of the group. You can:

    • edit the contexts by clicking the [+] button at the upper right corner of the Contexts view.

    • delete the whole group or any variable by selecting the group name or the variable and clicking the [X] button.

    • save any imported context variable as a built-in variable by right-click it and selecting Add to built-in from the contextual menu.

    • double-click any context variable to open the context group in the [Create / Edit a context group] wizard and update changes to the Repository.

How to apply context variables to a Job using the context button

To use the context button to apply context variables to a Job, proceed as follows:

  1. Double-click the Job to which a context variable is to be added.

  2. Once the Job is opened in the workspace, click the Contexts view beneath the workspace to open it.

  3. At the bottom of the Contexts view, click the button to open the wizard to select the context variables to be applied.

  4. In the wizard, select the context variables you need to apply or clear those you do not need to.

    Note

    The context variables that have been applied are automatically selected and cannot be cleared.

  5. Click OK to apply the selected context variables to the Job.

    The Contexts view shows the context group and the selected context variables. You can edit the contexts by clicking the [+] button at the upper right corner of the Contexts view, delete the whole group or any variable by selecting the group name or the variable and clicking the [X] button, but you cannot edit Repository-stored variables in this view.