Skip to main content Skip to complementary content

getContextVariable

Returns the value of a context variable.

Description

The getContextVariable function returns the value of a context variable defined in a Talend Studio Job.

Context variables allow you to parameterize DSQL scripts and maps with values that can change between different execution environments without modifying the DSQL code itself.

Arguments

Name of the context variable as a string.

Return value

The value of the specified context variable. The return type depends on the context variable type defined in the Job.

Examples

Expression Description
getContextVariable('database_host') Returns the value of the database_host context variable
getContextVariable('environment') Returns the value of the environment context variable (e.g., "DEV", "PROD")

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!