Variables
Variables play a crucial role in workflow executions within SimWorkflow. They serve as containers for storing information that can be utilized throughout the workflow process.
Here's how variables can be beneficial:
-
Storing reusable values
Variables allow users to store values that are frequently reused across workflow executions. Instead of setting the same value repeatedly in different parts of the workflow, users can set it in a variable and reference it whenever needed. This promotes efficiency and consistency in workflow design.
-
Avoiding hard-coding
Hard-coding values directly into workflow definitions can make them rigid and less adaptable to changes. Variables provide a flexible alternative by allowing users to store values separately from the workflow logic. This makes it easier to update values without having to modify the workflow structure, enhancing maintainability and scalability.
To define a workflow definition variable:
-
Log in to the SimWorkflow.
-
Navigate to Workflow definitions.
-
For a specific workflow definition, select the Variables menu in the 3 dots dropdown menu.
-
Define the variable.
From the Variable page, set up the following fields:
Field |
Required |
Description |
---|---|---|
Variable key |
Yes |
The variable key, must be one line, with no spaces, using only letters, numbers, or _ |
Variable value |
No |
The value of the variable. |
If the variable key already exists, the old value is replaced by the specified variable value.
To delete a workflow definition variable:
- Log in to the SimWorkflow.
- Navigate to Workflow definitions.
- For a specific workflow definition, select the Variables menu in the 3 dots dropdown menu.
- Select the Delete button of the variable to delete in the table.