Variable Assignment

Overview

The Variable Assignment component is used to create variables, which can be used in subsequent steps. Multiple variables can be created on a Variable Assignment node.

Configuration

Table 1 Variable Assignment

Parameter

Description

Variable Name

Name of the variable to be created.

Expression Type

The value can be JSONPath, XPath, or Simple Expression. Select an expression type based on the data structure.

For details, see Overview.

Definition Expression

Assign a value to the created variable. The variable value can be a constant, for example, hello world. You can also use an expression to reference the variable of the previous step, for example, the expression of the JSONPath type: $[0].name; expressions of the XPath type: /userinfo/user[1]/name; expressions of the simple type: ${property.name}.