August 15, 2023

Creating contexts for your different environments – Docs for ESB 6.x

Creating contexts for your different environments

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.

  1. Click the Contexts tab of your
    Job.

    Use_Case_tDataprepRun_dynamic_env_4.png

  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.

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


Document get from Talend https://help.talend.com
Thank you for watching.
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x