Creating contexts for your different environments - 7.0

Data Preparation

author
Talend Documentation Team
EnrichVersion
7.0
EnrichProdName
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
task
Data Governance > Third-party systems > Data Preparation components
Data Quality and Preparation > Third-party systems > Data Preparation components
Design and Development > Third-party systems > Data Preparation components
EnrichPlatform
Talend Data Preparation
Talend Studio

For your Job to be usable in differents situations, you will create two distincts contexts.

Talend Studio allows you to create a set of variables that you can regroup in a context. In this example, you will create a context called Development and another one called Production. Each of these contexts will contain the variables to be used for the tDataprepRun configuration, according to the target environment.

Procedure

  1. Click the Contexts tab of your Job.
  2. Click the + button on the top right of the variables table to create a new context.
  3. Select the Default context and click Edit... to rename it Development.
  4. Click New... to create a new context called Production.
  5. Click the + button on the bottom left of the variables table to create a new variable called parameter_URL.

    The parameter_ prefix is mandatory, in order for the variable to be retrievable in Talend Integration Cloud, if you use the Cloud version of Talend Data Preparation.

  6. On the newly created URL line, enter the URLs of your development and production instances of Talend Data Preparation in the corresponding columns.
  7. Repeat the last two steps in order to create the parameter_USERNAME and parameter_PASSWORD variables, that will store your Talend Data Preparation credentials depending on the environment.

Results

These two different contexts will be available at execution time, when deploying your Job.