Setting context parameters - 6.5

Talend Cloud

author
Talend Documentation Team
EnrichVersion
6.5
EnrichProdName
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Management Platform
Talend Data Services Platform
Talend MDM Platform
Talend Real-Time Big Data Platform
task
Data Governance > Third-party systems > Talend Cloud components
Data Quality and Preparation > Third-party systems > Talend Cloud components
Design and Development > Third-party systems > Talend Cloud components
EnrichPlatform
Talend Studio

You must define the parameters to connect to Dropbox and the parameter for the path to the customer file you want to process. Both parameters are defined as context parameters in this example. First because connection parameters must be context parameters, otherwise you may have a compile error when you try to publish the Integration Action to the Cloud. And second because context parameters are parameters you can pass to the Integration Action at runtime by using context variables which value you can change according to your needs.

This example assumes that you have imported the Cloud demo project in the Studio in order to have access to the ready-to-use context connection parameters in the Studio repository. If not, you can define them from scratch. For further information about the demo project and context parameters, see the Talend Studio Developer Guide.

Before you begin

  • You have imported the Cloud demo project in the Studio.

Procedure

  1. Open the Step Integration Action in the Studio.
  2. Click the Contexts tab below the design workspace.

    If the Contexts tab does not show in the Studio, click Window > Show view > Talend , and select Contexts.

  3. In the Contexts view:
    • Add a line in the table and define the context parameter for the filter following the pattern parameter__<parameter_name>, all in lower case. Enter parameter_gender for this example.

    • leave the Value field empty.

      This parameter enables you to use a condition in the tFilterRow component and filter customer data to output only rows with non-empty value.