Each contributor to the project can define their own context parameter values,
for example where the log file is pulled from and where the result file is pushed to,
before executing the Job in the cloud.
About this task
You can enter default parameter values to make the Job ready as is or provide
explicit examples to users. Here you are going to suggest other users to store the output
file in the
RoyaltiesDue folder.
Procedure
-
Open the Video_Viewers_Watch_Results_Log_Filter Job in Talend Studio.
-
Click the Context view below the design workspace.
If you cannot see the Context view, click
WindowShow view
Talend
Context.
-
Review the context parameters values.
They indicate the file you want to download from Dropbox, the numeric value used
to decide whether to generate royalties, and the output file to upload back to
Dropbox.
Context parameters follow strict naming conventions and must start with
parameter_ or connection_ depending
on the type of parameter, so that they appear in the right places in Talend Management Console.
-
Edit the value of the parameter_upload_path parameter to
/RoyaltiesDue/StreamingResultsLog_FilteredRecords.csv.
-
To view the parameters in use in components, click the
tDropboxGet component in the Designer
view.
-
In the Component panel underneath, remove the value in the
Path field and start typing
context.
-
Press
Ctrl+Space
to get the list of
available parameters.
-
Select context.parameter_download_path.
-
Similarly, you can open the tFilterRow and
tDropboxPut components to see how other context parameters
are used.