Skip to main content Skip to complementary content

Creating a context variable

About this task

For this scenario, you will define two context variables: nb_lines and lastname. The first variable will set the number of lines the tFixedFlowInput component will generate, and the second one will set the last name to display in the output list. For more information about how to create and use context variables, see Talend Studio User Guide.

To define the two context variables:

Procedure

  1. Select the Contexts tab view of your Job, and click the [+] button at the bottom of the view to add two variables, respectively nb_lines of type Integer and lastname of type String.
  2. In the Value field for the variables, set the last name to be displayed and the number of lines to be generated, respectively Ford and 3 in this example.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!