Variable Assignment Node
Variable Assignment Node Configuration
The Variable Assignment node is used to assign variable values to writable variables, achieving dynamic updating and transmission of data. With this node, the workflow can make corresponding processing and decisions based on real-time data. This node can also be used within a Loop node. The Variable Assignment node assigns specific values to intermediate variables, achieving dynamic updating and transmission of data in the loop.
To configure the Variable Assignment node, perform the following steps:
- Drag the Variable Assignment node on the left to the canvas and click the node to open the node configuration page.
- Connect the Variable Assignment node and other nodes.
- Configure the Variable Assignment node by referring to Table 1.
Table 1 Variable Assignment node configuration Configuration Type
Parameter Name
Description
Configuration of the Variable Assignment node outside the Loop node
Variable Assignment
Variable name: The variable name can be referenced only in the global configuration. The value can be the reference or input type.
Type and Value: Type can be set to ref and literal.
- ref: You can select the output variable values of the previous nodes contained in the workflow and the memory variables in the global configuration.
- literal: The value can be customized.
Configuration of the Variable Assignment node within the Loop node
Variable Assignment
The Variable Assignment node can be referenced in the loop body. Only the value of the intermediate variable in the loop body can be changed. Only intermediate variables can be selected as the variables to be assigned. The value can be the reference or input type. This setting is applicable to the scenario where intermediate variables are dynamically updated during a loop and parameters are transferred in the customized loop logic.
Type and Value: Type can be set to ref and literal.
- ref: Select this option if the value of the intermediate variable needs to reference the output of the upstream node. You can select the output variable value of the preceding node that has been included in the workflow and the built-in variables of the loop body, including index, item (array loop), and intermediate variable. This option applies to the scenario where the value of the intermediate variable is changed to a variable during the loop.
- literal: You can customize the value. This option applies to the scenario where the value of the intermediate variable is changed to a fixed value during the loop.
Figure 1 Variable Assignment node configuration exampleFigure 2 Example of configuring the Variable Assignment node within the Loop node - After completing the configuration, click OK.
- Connect the Variable Assignment node and other nodes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot