Node parameter values in a DataArts Factory job can be dynamically generated based on the running environment by using Expression Language (EL). You can determine whether to execute this node based on the input parameters of the pipeline and the output of the upstream node. EL uses simple arithmetic and logic to calculate and references embedded objects, including job objects and tool objects.
Job object: provides properties and methods of obtaining the output message, job scheduling plan time, and job execution time of the previous node in a job.
Tool job: Provides methods of operating character strings, time, and JSON. For example, truncating a substring from a string or formatting time.
Expression syntax:
#{expr}
In the preceding information, expr indicates an expression. # and {} are common operators used in EL, allowing you to access job properties using embedded objects.
In the URL parameter of the Rest Client node, use expression tableName=#{JSONUtil.path(Job.getNodeOutput("get_cluster"),"tables[0].table_name")}.
Expression description:
You can debug EL expressions using the following methods.
This section uses the #{DateUtil.now()} expression as an example.
If none of the preceding methods is available, use the Create OBS node and create an OBS path with the value of the EL expression as its name. You can click Test and go to the OBS console to view the name of the created path.