Skip to main content Skip to complementary content

DSQL map features

Talend Data Mapper provides a few features in DSQL maps on top of the existing Data Shaping Language functions.

You can find the documentation for the other Data Shaping Language functions in the Talend Data Shaping Language Reference Guide.

getContextVariable

Returns the value of the specified context variable.

You can use the getContextVariable function to call a context variable defined in your Talend Studio Job.

Information noteTip: For the complete DSQL function reference, see getContextVariable in the Talend Data Shaping Language Reference Guide.

Arguments

Name of the context variable.

getMapProperty

Returns the value of the specified execution property.

You can use the getMapProperty function to retrieve the value of an execution property. This function is particularly useful in Camel Routes (including the cMap component) to access exchange inbound headers.

Information noteTip: For the complete DSQL function reference, see getMapProperty in the Talend Data Shaping Language Reference Guide.

Arguments

Name of the execution property as a string literal.

Examples

getMapProperty('propertyName')

If the specified property does not exist, the function returns null.

java:call

Calls a Java method.

You can use the java:call feature to call a Java method. This can be used to call beans and routines available in Talend Studio for example.

Arguments

Java parameters.

Three different syntaxes are supported:
  • Call to a static method: java:call(<class_name>, <method_name>, <arguments>)
  • Call to a non-static method: java:call(java:new(<class_name>, <constructor_arguments>), <method_name>, <arguments>)
  • Call to a non-static method of a Java object returned by another method of a Java object: java:call(java:call(<class_name>, <method_name>, <arguments>), <method_name>, <arguments>)

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!