As a developer, many of the features in Procesio like process variables, data types or data models will look pretty familiar to you already.
Process variables act as placeholders for data that can be accessed throughout the lifecycle of a process. When a process is running, it passes dynamic data between actions.
A process variable has the following properties:
Name
Data type: can be either a primitive like string, integer, boolean or other, or it can be a custom type that you defined in the data model designer;
Default value: the default process value that will be used at runtime if no other value is set
Single value or list flag: a variable can be treated as a single value (default behavior) or a list of values
Set as Input or Output: the variable value is expected to be set when starting the process, or you can mark it as output if you expect that data to be the result of the process, which will allow you to transfer that data to the client application.
Creating a process variable
Go to the Process Designer section and open a new or an existing process.
Step 1: On the process page, click on the Process Variables icon.
Step 2: Click on the “Add variable” button.
Step 3: Process variable configuration
Using Process Variables in process flows
When configuring an action you can insert process variables in inputs by pressing "#" or by clicking on "Add variable". Both will generate the Process Variables selector from where you can select the process variable you want to use.
For each Process Variable you can see:
- name
- type
- attributes (for Data models)
- list tag
Process Variables can be inserted in process flows in different ways:
Input process variable
Output process variable
Process variable used within process to pass dynamic data between actions
They can be easily identified in the Process Variables list:
Whenever you use process variables in a configuration, it is easy to visually differentiate values from process variables. Process variables are outlined in a colored pill, unlike values:
Example 1: CustomerAddress is a process variable sent as QueryParam in the Call API action:
Example 2: amountValue is a process variable in Email Subject:
Log in to create or modify your process variables here.
Top comments (0)