This is an automated email from the ASF dual-hosted git repository.
leonbao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler-website.git
The following commit(s) were added to refs/heads/master by this push:
new 678ab6a fix global params set value (#455)
678ab6a is described below
commit 678ab6a4773118b398ba57430aa0cd6bdc09b9ec
Author: wind <[email protected]>
AuthorDate: Fri Oct 22 11:40:03 2021 +0800
fix global params set value (#455)
* fix global params set value
* fix setValue
Co-authored-by: caishunfeng <[email protected]>
---
docs/en-us/dev/user_doc/globalParams.md | 4 ++--
docs/en-us/dev/user_doc/guide/parameter/context.md | 2 +-
docs/zh-cn/dev/user_doc/globalParams.md | 4 ++--
docs/zh-cn/dev/user_doc/guide/parameter/context.md | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/docs/en-us/dev/user_doc/globalParams.md
b/docs/en-us/dev/user_doc/globalParams.md
index b14873c..7da8954 100644
--- a/docs/en-us/dev/user_doc/globalParams.md
+++ b/docs/en-us/dev/user_doc/globalParams.md
@@ -42,9 +42,9 @@ The structure returned by the parameter is
List<Map<String,String>>, where the e
The result of the processor execution is returned as Map<String,String>.
-The user needs to define $setValue(key=value) in the output when defining the
shell script.
+The user needs to define ${setValue(key=value)} in the output when defining
the shell script.
-Remove $setValue() when processing parameters, split by "=", with the 0th
being the key and the 1st being the value.
+Remove ${setValue()} when processing parameters, split by "=", with the 0th
being the key and the 1st being the value.
Similarly match the OUT parameter name and key defined by the user when
defining the task, and use value as the value of that parameter.
diff --git a/docs/en-us/dev/user_doc/guide/parameter/context.md
b/docs/en-us/dev/user_doc/guide/parameter/context.md
index c4a40cc..0a1ebe1 100644
--- a/docs/en-us/dev/user_doc/guide/parameter/context.md
+++ b/docs/en-us/dev/user_doc/guide/parameter/context.md
@@ -52,7 +52,7 @@ There is only the value of "id". Although the user-defined
sql looks up the fiel
### SHELL
-prop is user-specified. The direction is selected as OUT. The output is
defined as a parameter only when the direction is OUT. Data type can choose
different data structures as needed; the value part is not required to be
filled. The user needs to pass the parameter, and when defining the shell
script, the output format of $setValue(key=value) statement is required, key is
the prop of the corresponding parameter, and value is the value of the
parameter.
+prop is user-specified. The direction is selected as OUT. The output is
defined as a parameter only when the direction is OUT. Data type can choose
different data structures as needed; the value part is not required to be
filled. The user needs to pass the parameter, and when defining the shell
script, the output format of ${setValue(key=value)} statement is required, key
is the prop of the corresponding parameter, and value is the value of the
parameter.
For example, in the figure below:
diff --git a/docs/zh-cn/dev/user_doc/globalParams.md
b/docs/zh-cn/dev/user_doc/globalParams.md
index 38b2df8..bab18c1 100644
--- a/docs/zh-cn/dev/user_doc/globalParams.md
+++ b/docs/zh-cn/dev/user_doc/globalParams.md
@@ -48,9 +48,9 @@ Worker 收到后将 varPool 解析为 Map<String,Property> 的格式,其中 ma
processor 执行后的结果返回为 Map<String,String>
-用户在定义 shell 脚本时需要在输出中定义 $setValue(key=value)
+用户在定义 shell 脚本时需要在输出中定义 ${setValue(key=value)}
-在参数处理时去掉 $setValue(),按照 “=” 进行拆分,第 0 个为 key,第 1 个为 value。
+在参数处理时去掉 ${setValue()},按照 “=” 进行拆分,第 0 个为 key,第 1 个为 value。
同样匹配用户定义 task 时定义的 OUT 参数名与 key,将 value 作为该参数的值。
diff --git a/docs/zh-cn/dev/user_doc/guide/parameter/context.md
b/docs/zh-cn/dev/user_doc/guide/parameter/context.md
index e8d002b..d014b94 100644
--- a/docs/zh-cn/dev/user_doc/guide/parameter/context.md
+++ b/docs/zh-cn/dev/user_doc/guide/parameter/context.md
@@ -57,7 +57,7 @@ prop 为用户指定;方向选择为 OUT,只有当方向为 OUT 时才会被
prop 为用户指定;方向选择为 OUT,只有当方向为 OUT 时才会被定义为变量输出;数据类型可以根据需要选择不同数据结构;value 部分不需要填写。
-用户需要传递参数,在定义 shell 脚本时,需要输出格式为 $setValue(key=value) 的语句,key 为对应参数的 prop,value
为该参数的值。
+用户需要传递参数,在定义 shell 脚本时,需要输出格式为 ${setValue(key=value)} 的语句,key 为对应参数的
prop,value 为该参数的值。
例如下图中: