Variable
Here are the details about variable.
Define and edit variable
You can define and edit variables according to their types in the below places of the Flow Designer. You can input/output the variable or arrange the variable fields in order in the window for defining or editing variables except the system variable.
| Variable type | Define, edit in the Flow Designer |
|---|---|
| Flow variable | Variable pane |
| System variable | Dialog box for defining system variable |
| External variable set | Dialog box for editing external variable set |
| Local variable Mapper variable (including stream variable) |
Inspector's "Category" property |
After a variable name has been changed, the below will be correted automatically for referring to the variable.
- Mapping
- Conditional expression
- Property expression
- The template of the Velocity Component under direct input mode
※1. The Velocty Component's external template files won't be corrected.
※2. If a variable name isn't changed by "Edit by CSV format", the above won't be corrected automatically.
Naming regulation for variable
The string that can be used in a variable name should be satisfied with the below conditions.
The characters except !\"#$%&'()=~^|\\@`+*;:{}"",.<>/?\t can be used.
- For the initial character, number can't be used.
- The name length isn't limited.
- It's different between using a capital letter or a small letter in English.
- Single-byte space and Japanese can be used.
You can write it by using get notation [example:$flow.get("var1")] in the Velocity Component or property expression.
Set value for variable
You can map and set a value for the defined variable name field in the mapping window.
Refer to variable value
You can map and output a value from the defined variable name field in the mapping window. Moreover, you can use a property expression or a special notation in a component besides mapping.
Property expression's example
| Object | Reference notation |
|---|---|
| Flow variable/td> | $flow. |
| External variable set | $exvar. |
| System variable | $system. |
| Stream variable | $stream. |
Memo
About property expression, please refer to "Flow Designer">"Component">"Component property". The instruction about the component that can use notation is in its "Help" document.