FineDataLink Version
Functional Change
4.1.8.1
Allowed configuring dynamic assignment parameters.
If a parameter assignment is to be used in multiple scheduled tasks, you can set it as a global parameter for reference. In this way, scheduled tasks using this parameter will change automatically when the parameter is modified, eliminating the need for manual adjustments and improving task maintenance efficiency.
For example, if there are multiple scheduled tasks, you may need to maintain the Parameter Assignment node separately or call the API that is used to obtain the token repeatedly.
You can set the dynamic assignment parameter, which can be used in multiple scheduled tasks.
1. You can use global parameters in all scheduled tasks in the current project.
2. The use of global parameters is consistent with that of other existing parameters (such as dynamic parameters, parent task parameters, task parameters, and built-in parameters). In the configuration items where referencing parameters is supported, reference global parameters in the format of ${Parameter name} or '${Parameter name}'.
3. The priority of different types of parameters with the same name, arranged from high to low, is as follows:
Parameters set in the Parameter Assignment node, parent task parameters in the Invocation Task node, custom parameters, global parameters, and built-in parameters
4. Importing or exporting global parameters is not supported via Resource Migration currently.
5. You can select a dynamic global parameter as the object of a loop container.
If a loop container with global parameters and non-loop parameters uses the global parameter to traverse, the parameter value will be calculated before the task is executed and looped. If the node in the container references the parameter, the parameter value will not be calculated repeatedly.
6. Privileges on data connections:
The selectable data connections of global parameters depend on your permissions and are the same as those of scheduled tasks.
You can view/reference all global parameters, even if you do not have privileges on corresponding data connections.
The task can still run normally even if you referenced a global parameter whose data connection is not available to you.
7. Task execution:
All global parameters are executed before the scheduled task actually starts running. After all values of global parameters are calculated, the configured scheduled task will be run.
All execution records of the current task include the execution process of global parameters. For example, when the node of the global parameter (where the execution record started) is executed, the current node will report an error if the execution fails and there is no result.
If task A executes the global parameter and obtains result b1 while task C executes the global parameter and obtains result b2, result b1 is always used in task A.
8. For details about the parameter application scenarios in FineDataLink, see Typical Parameter Application in FineDataLink.
For third-party interfaces that set global parameters as tokens and make original tokens invalid after the refreshing, if two tasks that use token parameters are scheduled at the same time, the token obtained during the execution of task A may become invalid because a token is obtained during the execution of task B, causing the invocation to fail.
Solution: Do not schedule different tasks that use the same token as the global parameter at the same time, or use one parent task to invoke multiple child tasks.
If you do not want to maintain the Parameter Assignment node in multiple scheduled tasks separately, you may want to add a global assignment parameter.
Note: All FineDataLink users have permission to add global parameters.
1. Go to the Data Development page, click the button to configure global parameters, as shown in the following figure.
2. Click Add Parameter to add global assignment parameters. For example, you may want to fetch a column of time from the database as a parameter for multiple scheduled tasks.
Click Assignment Parameter, as shown in the following figure.
Select the data source and fetch the specified data, as shown in the following figure.
Setting Item
Description
Parameter Name
The names of global parameters cannot be the same.
The names of global parameters should not include interpolation braces with dollar signs (${}).
Parameter Value
When configuring the data source, only three built-in parameters (${cyctime}, ${workname.opresult}, and ${workname.jobname.opresult}) and global static parameters can be used. You cannot reference other built-in parameters, custom parameters, or global dynamic parameters.
Configure the items on the Output Parameter tab page, as shown in the following figure.
The configuration items in this section are identical with those in Parameter Assignment.
3. Click OK to add the configured parameter, as shown in the following figure.
Modifying Global Parameters
2. Click the button to modify the global parameter, as shown in the following figure.
3. Click Expand in the Modification Record column to view details, as shown in the following figure.
Deleting Global Parameters
Click the button to delete the parameter, as shown in the following figure.
2. Enter keywords in the search box to search for the specified global parameter, as shown in the following figure.
The configured global parameters can be used in scheduled tasks of Data Development, as shown in the following figure.
滑鼠選中內容,快速回饋問題
滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。
不再提示
10s後關閉
Submitted successfully
Network busy