SbloodyS commented on code in PR #10119:
URL: https://github.com/apache/dolphinscheduler/pull/10119#discussion_r876717253
##########
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.
Review Comment:
I think the previous version's description is better. We should keep it as
it is.
##########
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.```
##########
docs/docs/zh/guide/parameter/local.md:
##########
@@ -2,18 +2,27 @@
## 作用域
-在任务定义页面配置的参数,默认作用域仅限该任务,如果配置了[参数传递](context.md)则可将该参数作用到下游任务中。
+本地参数是只针对单个任务工作流节点的参数。在任务定义页面配置的参数,默认作用域仅限该任务,如果配置了[参数传递](context.md)则可将该参数作用到下游任务中。
## 使用方式
-本地参数配置方式如下:在任务定义页面,点击“自定义参数”右边的加号,填写对应的变量名称和对应的值,保存即可
+本地参数配置方式如下:在任务定义页面,点击“自定义参数”右边的加号,填写对应的变量名称和对应的值,保存即可。
-<p align="center">
- <img src="/img/supplement_local_parameter.png" width="80%" />
- </p>
+## 任务样例
-<p align="center">
- <img src="/img/global_parameter.png" width="80%" />
-</p>
+该样例使用本地参数,打印输出当前日期。创建一个 Shell 任务,并编写脚本内容为 `echo
${dt}`。点击配置栏中的**自定义参数**,配置如下图所示:
Review Comment:
本样例展示了如何使用本地参数.
##########
docs/docs/zh/guide/parameter/local.md:
##########
@@ -2,18 +2,27 @@
## 作用域
-在任务定义页面配置的参数,默认作用域仅限该任务,如果配置了[参数传递](context.md)则可将该参数作用到下游任务中。
+本地参数是只针对单个任务工作流节点的参数。在任务定义页面配置的参数,默认作用域仅限该任务,如果配置了[参数传递](context.md)则可将该参数作用到下游任务中。
Review Comment:
Same as english's.
--
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]