Contexts
The Studio commonly utilizes another type of variable – a context variable. Context variables allow jobs to be executed in different ways, with different parameters.
A classic example of this is when we develop a job and want to run it in different environments – development, test, and production, for example. Let us suppose that our job has to connect to a database, and, as is common, the connection details for development, test, and production databases are different. We could create three copies of the job, each one with different connection details configured, but this duplicates code and makes job maintenance more difficult. Far better would be to create a single job and allow it to run with different connection details depending ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access