---
title: Example: Using Task Status with the WaitForChild Workflow Block
slug: neurons-for-itsm/admin-user-help/enu/latest/example-using-task-status-with-the-waitforchild-workflow-block
createdAt: 2026-07-14T19:16:48.461Z
---

This example shows how to set up a workflow that waits for multiple tasks to be completed before continuing.

- [Creating a Workflow](docId\:x0DBfoAgdAhk2j6Yo64_Z)
- [Testing the Workflow](docId\:x0DBfoAgdAhk2j6Yo64_Z)

## Creating a Workflow

1. From the Configuration Console, click **Build&#x20;**>**&#xA0;Workflow&#x20;**>**&#x20;Workflows** to open the **Workflows** workspace.
2. Click **Add new\...**. The **Add New Workflow** page appears.
3. Enter the parameters.

| Parameter       | Description                                                                                    |
| --------------- | ---------------------------------------------------------------------------------------------- |
| Business Object | The business object. Choose one from the drop-down list. In this example, choose **Incident**. |
| List Name       | A unique name for the workflow object. In this example, enter **IncidentTaskStatus**.          |
| Display Name    | A name that appears on workspaces. In this example, enter **Incident Task Status**.            |
| Description     | A brief description of what the workflow does.                                                 |

4. Click **Save**. The workflow is created.
5. Click **Add Version**. First version of the workflow is created and the Workflow Designer appears.
6. Drag and drop appropriate blocks from the **Blocks** panel to design the workflow.
7. Connect all the blocks in a logical flow.

:::Paragraph{indent="1"}
In this example, **Start**, **Run Program**, **Wait for Child** and **Stop** blocks are used.
:::

8. Define the properties for the blocks by double-clicking the header of the block.
9. Define the following properties.

:::Paragraph{indent="1"}
For example, double-click the header of **Wait for Child&#x20;**&#x62;lock. The properties window appears.
:::

| Property                                    | Description                                                                                                                                                                      |
| ------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Title                                       | Block name. In this example, define the title as **Wait for all tasks to Complete.**                                                                                             |
| Relationship Name                           | Block category. In this example, select **IncidentAssocTaskAssignment**.                                                                                                         |
| How many children should satisfy conditions | Number of child items that should satisfy the wait condition. In this example, select **All**.                                                                                   |
| Timeout                                     | Timeout duration for wait condition. For this example, set **Duration** as **5 Mins**.                                                                                           |
| Child Conditions                            | **AND** - Child conditions applicable even if **Timeout** is defined.<br />**OR** - Child conditions not applicable if **Timeout** is set.<br />In this example, select **AND**. |
| Field                                       | Child condition type. In this example, select the child condition type as **Task**.                                                                                              |
| Operator                                    | Operator action. In this example, select the operator action as **Equal to**.                                                                                                    |
| Value                                       | Child condition value. In this example, set the value as **Completed**.                                                                                                          |

:::hint{type="info"}
The properties for every block is dynamic so they vary for each block.
:::

10. You can add or delete child conditions by clicking the add :inlineImage[]{src="https://api.archbee.com/api/optimize/parib0MC3hVoUNdfQdnac/TbCu0NxNYSAI4Uei-6xPJ_addicon.png" alt caption size="10" width="20" height="20"} or delete :inlineImage[]{src="https://api.archbee.com/api/optimize/parib0MC3hVoUNdfQdnac/q9vLe5T6EaJCmWxp1IL1S_deleteicon.png" alt caption size="10" width="21" height="20"} icon.
11. If you have completed defining the properties, click **Save**. The block property definition is saved.

*Workflow Designer*

::Image[]{src="https://api.archbee.com/api/optimize/parib0MC3hVoUNdfQdnac/pAE4b9U8AlHeTw1SZh9lX_workflow-designer.png" position="flex-start" size="40" initialPath="../../Resources/Images/help-images/Workflow Designer.png" githubPath="Content/Resources/Images/help-images/Workflow Designer.png" showCaption="false"}

12. Click **Save&#x20;**. The workflow is saved and now appears on the workflow list.

*Workflow List*

::Image[]{src="https://api.archbee.com/api/optimize/parib0MC3hVoUNdfQdnac/xPihTzNkNo_7kP-gpAb_P_workflow-list.png" position="flex-start" size="40" initialPath="../../Resources/Images/help-images/workflow list.png" githubPath="Content/Resources/Images/help-images/workflow list.png" showCaption="false"}

## Testing the Workflow

Test the workflow by creating an incident record with multiple tasks. Set the tasks to various states and observe the workflow instance.
