25.1.7.2 Creating a Workflow Variable
Create workflow variables with meaningful static IDs for values activities can change.
Create a variable using the Create Variable option on the workflow version's
context menu in the Workflows tree. The same option exists on the
Variables heading in the tree. For each variable you create, use the Property
Editor to choose a data type and assign it a meaningful Static ID. While not
required, using a variable static ID that starts with a prefix like V_
can help you distinguish variable names from Additional Data column names and
from workflow parameter names. You use the variable's static ID to reference its value
as a bind variable :V_YOUR_STATIC_ID in code or queries,
&V_YOUR_STATIC_ID. in substitutions, and
V_YOUR_STATIC_ID in activity properties requiring an
item name. For example, when configuring a variable name to receive an "out" value from
activities like Invoke API, Invoke Workflow, Human Task - Create,
and others, use the V_YOUR_STATIC_ID variable name.
Tip:
The variable Label you define is the friendly description that appears in the workflow detail page when a user inspects a workflow instance.
Parent topic: Defining Parameters and Variables