You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/en/guide/parameter/context.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,14 @@ The value of upstream parameter can be updated in downstream node in the same wa
23
23
24
24
Upstream parameter will be override when defining parameter with the same name in downstream node.
25
25
26
-
> Note: If there are no dependencies between nodes, local parameters cannot be passed upstream.
26
+
> Note:
27
+
>
28
+
> 1. Parameter passing behavior has changed in version 3.3.x**
29
+
> In older version before 3.2.2, downstream node B could obtain the out type output X of upstream node A without configuring an IN type local variable X.
30
+
> In the new version after 3.3.0, the logic for obtaining local variables has been modified: downstream node B can only use the out type output X of upstream node A if it has configured an IN type local variable X.
31
+
> See the Node_B and Node_mysql examples below for details.
32
+
>
33
+
> 2. If there are no dependencies between nodes, local parameters cannot be passed upstream.
27
34
28
35
### Example
29
36
@@ -46,12 +53,16 @@ When the SHELL node is defined, the log detects the format of `${setValue(output
46
53
47
54
Create the Node_B task, which is mainly used to test and output the parameters passed by the upstream task Node_A.
48
55
56
+
In the custom parameters, add an IN type value parameter and an output parameter.
When the SHELL task is completed, we can use the output passed upstream as the query object for the SQL. The id of the query is renamed to ID and is output as a parameter.
54
63
64
+
In the custom parameters, add an `OUT` type `ID` parameter and an `IN` type `output` parameter.
> Note: If the result of the SQL node has only one row, one or multiple fields, the name of the `prop` needs to be the same as the field name. The data type can choose structure except `LIST`. The parameter assigns the value according to the same column name in the SQL query result.
0 commit comments