Why do I need variables
You can use variables to create a more flexible and sustainable Workflow.
Variables are mostly used in advanced Activities such as the Diversity Activities. These Activities often have two parts:
- One part is to identify where to get data that serves as input for the Activity.
- One part is to identify where to store data that serves as output for the Activity.
For the Diversity Activities it is common to store the data resulting from the Activity into a variable. Once stored in the variable, you can re-use the stored value elsewhere in the Workflow, by referring to the variable.
To create a variable to store data
- Click on the Variables button, below the Workflow. a panel will appear, containing an editable table.
- In the table click on 'Create variable' to start creating a new variable.
- Provide a name for the variable, preferably a name that describes its contents. Use camel case.
- Indicate the type of variable (e.g. boolean, integer, string, etc.). You can find specific types using 'Browse for types...'.
- Moving to another row saves this data to a new entry.
You can now use the name of this variable into one of the fields of the current Activity, or in Activities that are next.