Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Work Tasks

How to Update a Parent Workflow Variable from a Child Workflow?

How to Update a Parent Workflow Variable from a Child Workflow?

  • Last UpdatedJun 21, 2024
  • 3 minute read
  1. In AVEVA Work Tasks, a parent workflow variable can be updated from a child workflow provided both child and parent workflow belong to the same repository. This can be achieved by using Update Parent Variables activity.

To update parent workflow from a child workflow, do the following steps:

  1. Right-click Update Parent Variables Activity and select Activity Properties.

  2. Enter the parent workflow's repository name in the Parent Workflow Application Name property. The parent workflow should belong to the same repository of the child workflow. This property of the Update Parent Variable activity is exposed for backward compatibility.

  3. Enter the parent workflow name in the Parent Workflow Name property. The parent workflow should belong to the same repository of the child workflow.

  4. Click List Parent Variables property to update the variables in the parent workflow.

    To update the value of variable

    1. To specify the parent workflow variables, click the button for the 'List Parent Variables' property to open the property window.

    2. In the Update Parent Variables window, select the check box of the respective parent variable.

    3. Choose the specific option from the list using which the parent variable to be updated. The parent variable value can be updated from the Value, Variable, Content, or XML Variable of the child workflow.

    4. Depending on the choice, select the respective text box/options/node from the RHS and click Update to save.

      Note: The value can also be hard coded using the Value option as shown in the following figure.

    5. After selecting and assigning values to the variables, click Update to save.

      To set the value of XML Variable

      1. Select the check box of the respective parent variable.

      2. Click the icon on the left hand side of the check box. The Update Node Values window appears. Specify the node to be updated for the respective parent XML Variable.

      3. Select the node to be updated from the tree view.

      4. Choose the option using which the parent XML variable node to be updated. The parent XML variable node value can be updated from the SetValue, Variable, Content, or XMLVariable of the child workflow. Depending on the choice, select the respective value/options/node from the RHS.

        Note: The value can also be hard coded using the SetValue option as shown in the following figure.

      5. You can specify multiple nodes for updating by using the Add Row option.

      6. To remove any node that is set from updating, click the respective check box of the entry to be deleted, and then click Remove Selected.

        TitleResults for “How to create a CRG?”Also Available in