QuakeWang commented on code in PR #10119:
URL: https://github.com/apache/dolphinscheduler/pull/10119#discussion_r876725446
##########
docs/docs/en/guide/parameter/local.md:
##########
@@ -2,18 +2,27 @@
## Scope
-Parameters configured on the task definition page, the scope of this parameter
is inside this task only. But if you configure according to [Refer to Parameter
Context](context.md), it could pass to downstream tasks.
+Local parameters are used only for a single task node. Parameters configured
on the task definition page, the scope of this parameter is inside this task
only. But if you configure according to [Refer to Parameter
Context](context.md), it could pass to downstream tasks.
## Usage
-Usage of local parameters is: at the task define page, click the '+' beside
the 'Custom Parameters' and fill in the key and value to save:
+Usage of local parameters is: at the task define page, click the '+' beside
the 'Custom Parameters' and fill in the key and value to save.
-<p align="center">
- <img src="/img/supplement_local_parameter_en.png" width="80%" />
-</p>
+## Examples
-<p align="center">
- <img src="/img/global_parameter_en.png" width="80%" />
-</p>
+This example uses local parameters to print the current date. Create a Shell
task and write a script with the content 'echo ${dt}'. Click ** custom
parameter ** in the configuration bar, and the configuration is as follows:
Review Comment:
> Do you think this is better? `This example shows how to use local
parameters to print the current date.`
Great I will update it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]