Create variables in workflow
- Last UpdatedDec 17, 2025
- 4 minute read
AVEVA Work Tasks supports storage types that are mainly categorized as Variables, Contents, and XmlVariables.
-
Create a variable
-
Assign a value to the variable
-
Use the variable in an activity
Prerequisites
-
Create a repository.
-
Log on to the repository using Administrator credentials.
Create variable
-
Access the Central Configuration URL (for example, https://worktasks.connect.aveva.com/CC123456789). .
-
In the Enterprise Console, click the Menu button, and then click Workflows. The Workflows page appears.
-
On the action bar, click New, and then click Workflow. The New Workflow wizard appears.
-
In the Title box, type a name for the workflow, and in the Description box, type a description for the workflow.
-
Click Save & Continue. The workflow is created, and the Workflow Options wizard appears.
-
Select Design the Workflow now, and then click Finish. The Process Designer appears. While designing a workflow, if you get a pop-up blocker warning message, then to select Allow Blocked Contents to proceed further.
-
Right-click the Start activity, and then click Activity Properties. The Activity Properties appears.
-
Click the edit icon near the Variables property to declare the variable. The Variables dialog box appears. All Variables added to the workflow are displayed in rows in the grid.
-
Enter "EmployeeName" in the Workflow Variables text box, and then select the Type as "String".
-
Click Update to save the variable.
-
Click the Save button in the Activity Properties pane to save all the data entered.
Update variable
To update the value of the variable in the subsequent activities, we have to add the Update Variable activity from the Engine Activities list.
-
Select Engine Activities from the Activities drop-down list.
-
Drag the Update Variable activity to the Design area.
-
Right-click the Update Variable activity in the Design area, and then click Activity Properties.
-
Configure the Update Variable activity.
-
Enter a Name and Description for the activity.
-
Configure the SetVariable property.
-
Click the edit icon in the Set Variable property to set a value for the variable. The Update Variable dialog box appears. Click Select. The tree view containing the list of Variables and XmlVariables is seen.
-
Click Select. The tree view containing the list of Variables and XmlVariables is seen.
-
Click the
icon near the Variables view. You will see the variable that we created in the Start
activity.
-
Click the variable “Variable.Employee” and enter a value for it. Enter the name “John”.
-
Click OK to update the value assigned
-
-
Click the Save button in the Activity Properties pane to save all the data entered.
-
-
Click the Link icon in the toolbar to link the two activities, that is the Start and the Update Variable.
The Link Action appears.
-
Click OK to establish the link.
Use variable in the activity
-
Select Human Activities.
-
Drag the Information activity to the Design area.
-
Right-click the Information activity in the Design area, and then click Activity Properties.
-
Configure the Information activity.
-
Enter a Name and Description for the activity.
-
Configure the Actor to whom you want to send the information:
-
Click the edit icon near the Assign Actor(s) property. The Assign Actor(s) appears.
-
You have to assign the Information task to the user who has alerted the workflow. For this, you have to specify a small expression:
-
Select the required provider from the Providers list.
-
Select ID from the first drop-down list.
-
Keep the operator as default "=".
-
Select Variable from the next drop-down list.
-
Select Variable.SubmittedBy.ID in the last drop-down list, and then click Add.
-
Click Update to save the property value.
-
-
Configure the Subject property:
-
Click the edit icon near the Subject property. The Subject appears.
-
Enter the subject in the text area.
-
To customize the subject and append the subject by selecting some XML variable and building an expression follow the next set of steps:
-
Type 'The Employees Name is:' in the text area.
-
Select Variables from the first drop-down list.
-
Select the Variable you had declared in the Start activity from the second drop-down list, that is EmployeeName.
-
Click Append.
-
Click Update
-
-
Click the Save button in the Activity Properties to save all the data entered.
-
-
Click the Link icon to add a new link between the two activities, "EmployeeVariableUpdation" and "DisplayingEmployeeInformation".
-
Click OK to establish the link.
-
Click Publish and Test Run. The Process execution view appears where you will notice the Start, Employee Variable Updation, and Display Information activity has been executed successfully.
Note: If the Status is "Execution Pending" in the Process execution view, then click the Refresh button to get the latest status.
View Inbox
To view the information task assigned to the actor who alerted the workflow.
-
Select the Inbox from the Enterprise Console menu. A task with the subject “The Employee name is John” is available in the users Inbox.
-
Click the Information task in the Inbox to view the details for the task. You have successfully created the VariableWorkflow.
AVEVA Work Tasks provides you other storage types, like Contents and XmlVariables.
For more information about using variables, see the Start Variables topic in the Developing Business Processes section.