Use Talend Data Stewardship connection
parameters to define context variables and pass them to the Job at runtime to decide onto
which Talend Data Stewardship instance to populate with
your data.
About this task
This procedure shows how to define a context group and its context variables in the
Talend Studio
repository before importing it to the
Context view of the
Job.
Procedure
-
Right-click the Contexts node in the
Repository tree view and select Create
context from the menu.
-
In the open wizard, enter a name, purpose, and description for
the new context group. Call it TdsServerContextGroup in this example.
-
Click Next and start
defining the context variables.
A default context environment named Default is
created.
-
Click Manage environments.
The Manage context environments window opens.
-
Rename the context Default to Test
and create a new context named Production.
-
Click OK to validate your context definition.
The newly created contexts Test and
Production are shown in the context variables table.
-
Add the following three context variables by clicking the
[+] button below the table,
specifying their names and types, and entering their values under each
context.
-
TdsServerURL of
String type, which represents the URL of a Talend Data Stewardship instance.
-
TdsServerUsername
of String type, which represents the username for accessing a Talend Data Stewardship instance.
-
TdsServerPassword
of Password type, which represents the password for accessing a Talend Data Stewardship instance.
You
need to enter the URL and Username values between double quotation marks and
enter the Password value without double quotation marks.
-
Click Finish to close
the wizard and create the group under the Contexts node.
-
Open the Context view under the Job in the design
workspace.
If you can not see the Context view, select .
-
Drop the new group from the Repository
to the Context view.