Workflow Activity
- Last UpdatedNov 10, 2025
- 9 minute read
Activity description:
In AVEVA Work Tasks, a workflow can be called from another workflow provided both workflows belong to the same repository. In this case, the calling workflow is termed as Parent Workflow and the workflow to be called is termed as Child Workflow.
The Workflow Activity enables the execution of a second (child) workflow from a (parent) workflow. The Workflow Activity can be used to call a child workflow from a parent workflow. The Variables for the child workflow property and XMLVariables for the child workflow property enable parent workflow to pass variable and XML variable information to the child workflow respectively.
Activity Properties:
The Workflow Activity has to be configured by specifying appropriate values for the different properties in the Activity Properties area. The Activity Properties can be accessed by clicking on the Activity Properties tool in the Tool Bar or by selecting the appropriate option from the right click menu for the workflow activity. The Activity Properties are organized under the following groups of related properties. The properties under each group are described in this topic.
Name & Description
The properties in the Name & Description group have been described below. You can use these properties to specify the name and description for the activity.
Name - This property can be used to specify a name for the activity.
Property Type: Optional (This property needs to be set only if necessary.)
Description - This property specifies a brief description to be displayed for the activity.
Property Type: Optional (This property needs to be set only if necessary.)
Configuration
The properties in the Configuration group have been described below. You can use these properties to configure the functionality of the activity.
Repository - This property specifies the application or repository name that has the workflow to be run. The child workflow should belong to the same repository of the parent workflow. The repository property of a child workflow is exposed for backward compatibility.
Property Type: Mandatory (This property must be set if the activity is to be executed.)
Workflow: This property specifies the workflow to execute. This is an editable combo, which drops down a list with the names of all available workflows for the specified application. You can select one of the workflows as the child workflow. Alternatively, you can enter a name in the field to create a new child workflow. Now when, you right-click the workflow activity icon and select the "Open Sub Process" option, a new Process Designer window will be opened with the Application name and Workflow name specified here. You can create the new sub-process in this window.
Property Type: Mandatory (This property must be set if the activity is to be executed.)
Version - This property specifies the version only if any specific version of the (child) workflow to be executed. Leave this as blank, if the latest published version of (child) workflow has to be executed.
Property Type: Optional (This property needs to be set only if required.)
Contents for ChildWorkflow - This property specifies the content to be passed on to the workflow. Build the content to be passed to the child workflow, if required.
Property Type: Optional (This property needs to be set only if required.)Use one of the following options to specify the content to be passed:
-
Set the contents to be passed as same as Parent Contents
-
Append some more contents to the parent workflow contents
-
New workflow contents
Steps to set content for Child Workflow property
-
To specify the contents to be passed to the child workflow, click the button for the 'Contents for ChildWorkflow' property to open the property window.
-
In the Set Contents for ChildWorkflow dialog box, the Set Contents tab is selected by default and the corresponding window appears.
-
Click the Set the Parent Contents check box to pass the parent contents XML to the child workflow.

-
Click the Set button to set this property.
-
Alternatively, you can append XML content to the parent workflow contents and pass them to the child workflow. To do this, click Append to open the corresponding window.
-
Select a type of value (Variable or Content) and the corresponding value collection from the respective drop-down and then click Insert to add the selection to the text area.

-
Add more XML contents if necessary. After adding all the values, click Append to save the setting.
-
Third options to build complete XML content and can pass these contents to child workflow. To do this, click the New tab to open the corresponding window.
-
In this window, select a type of value (Variable or Content) and the corresponding value collection from the respective drop-down and then click Insert to add the selection to the text area.

-
After specifying the new content, click Add to save the settings.
See Workflow - Contents for ChildWorkflow for a detailed description of the Contents for ChildWorkflow property window.
See the Using XML Variables section in the About the XML Variable User Interface topic for details on how to use the XMLVariables to build the expression.
Variables for ChildWorkflow - This property specifies the variables to be passed on to the workflow. This window shows the list of variables defined for the current (parent) workflow. Select the variables that need to be passed to the child workflow.
Property Type: Optional (This property needs to be set only if required.)
Steps to set the Variables for ChildWorkflow property
-
To specify the variables to be passed to the child workflow, click the button for the 'Variables for ChildWorkflow' property to open the property window.
-
In the Variables for ChildWorkflow window, select the required variables to be passed to the child workflow.

-
After specifying the data click the Update button.
Note: These variables are expected to exist in the child workflow. Make sure to define variables with same name and type as defined in parent workflow.
See Workflow - Variables for ChildWorkflow for a detailed description of the Variables for ChildWorkflow property window.
XMLVariables for ChildWorkflow - This property specifies the XML variables to be passed on to the child workflow. This window shows the list of XML variables defined for the current (parent) workflow. Select the XML variables that need to be passed to the child workflow.
Property Type: Optional (This property needs to be set only if required.)
Steps to set the XMLVariables for ChildWorkflow property
-
To specify the XML variables to be passed to the child workflow, click the button for the 'XMLVariables for ChildWorkflow' property to open the property window.
-
In the XMLVariables for ChildWorkflow window, choose the required variables to be passed to the child workflow.
-
Click the Update button.
Note:
- These XML variables are expected to exist in the child workflow. Make sure to define
XML variables with same name and type as defined in parent workflow.
- To work with any XML variables or resource activities, SKEventData XML variables
must be passed in the child workflow, where SKEventData contains some events information
related to parent workflow which needs to be passed to child workflow. If SKEventData
variable is not created, user can create XML variable of type XMLDocument with the
same name 'SKEventData' by locating the 'SKEventData.xml' from the following path
..\BPMUITemplates\Default\XMLSchemas.
See Workflow - Workflow - XmlVariables for ChildWorkflow for a detailed description of the XMLVariables for ChildWorkflow property window.
Wait for the child workflow? - This property determines whether the parent workflow should wait for the child workflow to complete.
Property Type: Optional (This property needs to be set only if required.)
Execution mode - This property determines whether the child workflow should be executed synchronously i.e., whether the child workflow can redirect the client to some URL.
Property Type: Optional (This property needs to be set only if required.)
Control child workflow? - This property determines whether the workflow control actions like pause, resume, and abort that are performed on the parent workflow should also be applied to the child workflow.
Property Type: Optional (This property needs to be set only if required.)
Note: Both properties namely Wait for the child workflow? and Control child workflow? should be set as No, if you do not want the parent workflow to wait till child workflow completes the execution.
Is Blocking Output Supported? - This property can be used along with the BlockingOutput activity.
The Workflow activity is a sleeping activity. The BlockingOutput activity may not return the expected results if any sleeping activity is executed before it. Use the Is Blocking Output Supported? property to overcome this behavior.
By default, the value for this property is set to No. Set the value to Yes if you want to use this property with the BlockingOutput activity. You can also set the value for this property through the Expression Editor.
Along with this property, set the values for the following properties as mentioned below.
-
Set the value of Wait for the child workflow? to No.
-
Set the value of Execution mode to Synchronous.
-
Set the value of Control child workflow? to No.
Property Type: Optional (This property needs to be set only if required.)
Note: Consider a scenario where the Set Workflow Variable Out activity is used in the child workflow and then the return values are specified in the parent workflow. In this scenario, the BlockingOutput activity will not work.
Output Values
The property in the Output Values has been described below. You can use this property to specify the output values of the activity.
Return Values - This property can be used to add all the possible output values from the child workflow, for conditional routing. The child workflow should set a value to the 'ParentWorkflowOutput' variable. This variable will hold the output value from the child workflow. The value of the 'Wait for the child workflow?' property should be set to 'Yes'.
Property Type: Mandatory (This property must be set if the activity is to be executed.)
Steps to set the Return Values property
-
To specify the Return Values, click the button for the 'Return Values' property to open the property window.
-
In this window, enter the return value in the Return Values field.
-
After entering the return value details, click Add Row to add this return value and display a new row for entering another return value.
-
Remove rows if necessary by selecting them and clicking Remove Selected.
-
After specifying all the return values, click Update.
See Workflow - Return Values for a detailed description of the Return Values property window.
Activity outputs:
The Workflow Activity does not have any standard return value. It will output the value specified by the user in the Return Values property.
Example for Workflow Activity
Configure Parent Workflow to wait for Child Workflow completion
-
Set Wait for the child workflow property as Yes to wait for the child workflow to complete the execution.
-
Use Return Value property to set the routing condition after completion of child workflow. Example: ChildWfCompleted.

This will dynamically create a link output named 'ChildWfCompleted' for the activity. Once the child workflow completes its execution, it returns back to the parent workflow with the return value specified in the child workflow (In this case, child workflow returns 'ChildWfCompleted' value) and then it will continue with further execution.
Configure Child Workflow
-
Right-click the workflow activity to open child workflow using the context menu item Open Sub Process.

-
Declare a variable named 'ParentWorkflowOutput' of type string in the child workflow Start action.
-
Use Update Variable action to set the variable 'ParentWorkflowOutput' value as 'ChildWfCompleted' (This value should be same as the value for the Return Values property in parent workflow action properties).
-
The Update variable action to update the parent workflow output should be placed after the logical conclusion of child workflow.

After configuring child workflow, follow the steps given below:
-
Go back to the parent and set routing condition based on the output 'ChildWfCompleted'
-
Parent workflow goes to sleep mode after the child is executed.
-
Child completes execution with Update Variable as the last action.
-
Once the child completes execution, the value set in Update variable is given as output for the workflow action in parent.
-
Note: If the child workflow needs to update any of the parent workflow variables, the Parent workflow must wait for the child workflow to complete.
Exception Behavior
Each activity has the Raise Error on Unhandled Linked Output property on click of which. It shows all the default configured mapped error outputs in red with their check boxes selected.
See Mapped Error Outputs for more details.