Setting context parameters
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.
- You have imported the Cloud demo project in the Studio.
- Open the Target Integration Action in the Studio.
-
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. -
In the Contexts view:
To…
Do the following…
Import the context connection parameter
-
click the
icon and import the Dropbox
connection from the Studio repository. -
in the Value field, set the
token you have generated via the App console of Dropbox for accessing the
Dropbox App folder to be used.
Define the file-path parameter
-
Add a line in the table and define the context parameter
for the file path following the pattern
parameter__<file_path>, all in lower
case. Enter parameter_upload_path for this
example. -
In the Value field, set the path
to the filterd customer file on Dropbox.
-