You want the results output by upstream nodes to be used by downstream nodes.
You want to implement conditional judgment based on the execution results of specific nodes.
You can use the Parameter Assignment node to output the execution results of upstream nodes as parameters that can be used by downstream nodes.
In a data development task, if a node requires the output results from multiple and multi-level upstream nodes, you can use the Parameter Assignment node, extract the necessary data in Data Source, and assign it to parameters to output the extracted data as parameters. Downstream nodes can then use these parameter values.
1. The user-created parameters only belong to the current task.
2. For details about the parameter application scenarios in FineDataLink, see Typical Parameter Application in FineDataLink.
3. For details about how to use parameters, see Parameter Configuration and Use.
4. For details about the difference between Parameter Assignment and Parameter Output, see In-Task Parameter.
Create a Parameter Assignment node in a scheduled task to add parameters that can be used by the downstream node, as shown in the following figure.
Data Source
Fetch data to be assigned to the parameter in Data Source.
You can fetch data from multiple data sources. For details, see Data Sources Supported by FineDataLink.
1. When you select a data source from DB Table Input, you can fetch data by writing SQL statements, selecting the table (Adding filter conditions is supported.), and calling the stored procedure, as shown in the following figure.
On the Data Source tab page, when you set Configuration Method to Table Selection, the table description is displayed. For details about the table description, see Data Synchronization - Data Source.
2. You may want to obtain the token from the API request header and set it as a parameter to facilitate subsequent API calling.
To achieve that, select API Input from the drop-down list of Data Source of the Parameter Assignment node, where you can obtain the response header, response body, and status code of the API response, as shown in the following figures.
Select Response Body under Return Value Processing > Information Type. You can specify a JSON path for the response body or expand the parsed JSON data into a two-dimensional table. For instance, if you select Response Body and Expand Parsed JSON Data into a Two-Dimensional Table, the data preview result is shown in the following figure.
If any information type besides Response Body is selected, the Expand Parsed JSON Data into a Two-Dimensional Table option is unselectable.
Select Response Header under Return Value Processing > Information Type. You can parse the value of the key in the response header.
You can configure keys in the currently obtained response header in batches, or manually add the key.
If you select Response Header, Response Body, and Status Code, the data preview result will be a dimension table with columns displayed in the order of the status code, the response header, and the response body, as shown in the following figure.
You can then set the parsed data as parameters in Output Parameter.
Output Parameter
You can fetch data from the specified column and row and set it as a parameter, as shown in the following figure.
You can fetch data from the specified column and row and set it as a parameter.
Set parameter values to values in all columns in the first row of the data table, as shown in the following figure.
For FineDataLink of versions before 4.1.0:
Numeric Separator:
An example of a single value: 1
An example of multiple values: 1,2,3
Text Separator:
An example of a single value: 'text'
An example of multiple values: ' text 1','text 2'
For FineDataLink 4.1.0 and later versions:
Closure Character is disabled by default for values of new parameters.
If Closure Character is disabled, the separating effect is equivalent to that of the numeric separator in FineDataLink of versions before 4.1.0.
If Closure Character is enabled, the separating effect is equivalent to that of the text separator in FineDataLink of versions before 4.1.0.
After setting the parameter value, click Parameter Preview to view the parameter value.
The debug value is to demonstrate the data preview effect for downstream nodes and is not used during the formal operation.
For FineDataLink of versions before 4.1.0, You are strongly advised to fill in the default parameter value to demonstrate the data preview effect for downstream nodes.
For FineDataLink 4.1.0 and later versions, the first five parameter values in the preview area are set as debug values after you click Parameter Preview.
In the parameter list of the current task, you can see all the parameters set in the Parameter Assignment node, as shown in the following figure.
Parameter Use
1. Cross-node parameter passing is supported.
The output parameter can be used in all downstream nodes of the same branch, but cannot be used in nodes of other branches.
The parameter values output by the Parameter Assignment node remain unchanged until the node is executed again, meaning the parameter values passed to downstream nodes are fixed and insusceptible to downstream steps.
2. Parameters can be transmitted across tasks from a parent task to a subtask. For details, see Invocation Task.
3. The way to reference a parameter in downstream nodes of the same branch as the Parameter Assignment node is as follows:
The value is a single string or a single number: =${Parameter name}
The value is more than one string or more than one number: in (${Parameter name})
Click the Batch Generation button to generate parameters in batches.
Select the source column to generate the corresponding parameter. The parameter name is generated automatically in the format of Field name_Parameter. (The parameter name is suffixed with _Parameter if identical names exist until there is no duplicates.)
Select multiple parameters to be modified, and click Modify Source Row to modify the parameters in batches, as shown in the following figure.
Select multiple parameters to be deleted, and click Delete to delete the parameters in batches, as shown in the following figure.
If the preview fails in the Output Parameter step and an error message saying "param unable to get the specified row and column data" appears, the data output by the parameter is empty, and this error can be ignored. The task can be executed normally.
滑鼠選中內容,快速回饋問題
滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。
不再提示
10s後關閉
Submitted successfully
Network busy