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.
- Open the Step Integration Action in the Studio.
Click the Contexts tab below the design
If the Contexts tab does not show in the Studio, click Window > Show view > Talend , and select Contexts.
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.