Dynamic settings tab of components in a Job - Cloud - 8.0

Talend Studio User Guide

Version
Cloud
8.0
Language
English
Product
Talend Big Data
Talend Big Data Platform
Talend Cloud
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Design and Development
Last publication date
2024-02-29

About this task

The Basic settings and Advanced settings tabs of all components display various check boxes and drop-down lists for component parameters. Usually, available values for these types of parameters can only be edited when designing your Job.

The Dynamic settings tab, on the Component view, allows you to customize these parameters into code or variable.

This feature allows you, for example, to define these parameters as variables and thus let them become context-dependent, whereas they are not meant to be by default.

Another benefit of this feature is that you can now change the context setting at execution time. This makes full sense when you intend to export your Job in order to deploy it onto a Job execution server for example.

Dynamic settings view of a component.

To customize these types of parameters, as context variables for example, follow the following steps:

Procedure

  1. Select the relevant component basic settings or advanced settings view that contains the parameter you want to define as a variable.
  2. Click the Dynamic settings tab.
  3. Click the plus button to display a new parameter line in the table.
  4. Click the Name of the parameter displaying to show the list of available parameters. For example: Print operations
  5. Then click in the facing Code column cell and set the code to be used. For example: context.verbose if you create the corresponding context variable, called verbose.
    Note: As code, you can input a context variable or a piece of Java code.

Results

The corresponding lists or check boxes thus become unavailable and are highlighted in yellow in the Basic settings or Advanced settings tab.
Basic settings view of a component.
Note: If you want to set a parameter as context variable, make sure you create the corresponding variable in the Context view. For more information regarding the context variable definition, see Defining context variables in the Context view.

For use cases showing how to define a dynamic parameter, see Defining Context Groups.