Importing custom context parameters - Cloud

Talend Cloud Getting Started Guide

Version
Cloud
Language
English
Product
Talend Cloud
Module
Talend Management Console
Talend Studio
Content
Deployment > Deploying > Executing Tasks
Deployment > Publishing
Design and Development > Designing Tasks
Last publication date
2024-01-24

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

  1. Open the Video_Viewers_Watch_Results_Log_Filter Job in Talend Studio.
  2. Click the Context view below the design workspace.
    If you cannot see the Context view, click WindowShow view Talend Context.
  3. 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.

    Screenshot of context parameters and their values in the Context view.
  4. Edit the value of the parameter_upload_path parameter to /RoyaltiesDue/StreamingResultsLog_FilteredRecords.csv.
  5. To view the parameters in use in components, click the tDropboxGet component in the Designer view.
  6. In the Component panel underneath, remove the value in the Path field and start typing context.
  7. Press Ctrl+Space to get the list of available parameters.
  8. Select context.parameter_download_path.
  9. Similarly, you can open the tFilterRow and tDropboxPut components to see how other context parameters are used.