> For the complete documentation index, see [llms.txt](https://docs.valorx.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.valorx.com/valorx-fusion/design-studio/workflow-and-ux/utility-tasks.md).

# Utility Tasks

Utility Tasks control how your workflow runs. Use them to pause a workflow, reuse another workflow, or stop a workflow at a specific point. You can find them in the Toolbox of the Workflow designer, under Utility Tasks.

<figure><img src="https://2472585788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFqFFf4143HS0_Wagnz%2Fuploads%2FsGR3fhSRGjlTswOSE49v%2FAccess%20Utility%20Task.gif?alt=media&amp;token=c7072e73-2769-4738-9203-462d4a270d0d" alt=""><figcaption><p>Utility Task</p></figcaption></figure>

The Utility Tasks group includes three tasks:

<table><thead><tr><th width="142" valign="top">Task</th><th valign="top">What it does</th><th valign="top">Use it when you want to</th></tr></thead><tbody><tr><td valign="top">Wait Task</td><td valign="top">Pauses the workflow for a set time before the next step runs.</td><td valign="top">Give a process time to finish before the workflow continues.</td></tr><tr><td valign="top">Break Task</td><td valign="top">Stops the workflow at the point where it is placed.</td><td valign="top">End a workflow, or a chain of connected workflows, early.</td></tr><tr><td valign="top">Connected Workflow</td><td valign="top">Runs another existing workflow from inside the current workflow.</td><td valign="top">Reuse common steps instead of rebuilding them in every workflow.</td></tr></tbody></table>

***

## ![](https://2472585788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFqFFf4143HS0_Wagnz%2Fuploads%2F8zU9lBPRVrGmpPPwOW5p%2FWait%20Task.png?alt=media\&token=ac1086b3-5508-4f5f-8149-8bbeecb92cfa) Wait Task

The **Wait Task** adds a timed pause to your workflow. When the workflow reaches the Wait Task, it waits for the set duration and then moves on to the next step.

### Add a Wait Task

{% stepper %}
{% step %}
Open the workflow in the Workflow designer.
{% endstep %}

{% step %}
In the Toolbox, expand Utility Tasks and add Wait Task to the canvas.
{% endstep %}

{% step %}
Connect it between the two steps where you want the pause.
{% endstep %}

{% step %}
Select the Wait Task and set its properties in the Workflow Settings panel.
{% endstep %}

{% step %}
Click Save.
{% endstep %}
{% endstepper %}

<figure><img src="https://2472585788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFqFFf4143HS0_Wagnz%2Fuploads%2FqvBOfA1ghzllVYnCMMQc%2Fimage.png?alt=media&amp;token=909cacc9-ee3a-4104-9dcb-566e56e02d60" alt=""><figcaption><p>Wait Task</p></figcaption></figure>

### Wait Task Properties

<div align="left" data-with-frame="true"><figure><img src="https://2472585788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFqFFf4143HS0_Wagnz%2Fuploads%2FpsHw5btDJwnJLd0G5cqB%2Fimage.png?alt=media&amp;token=cb3ac53d-61d4-45b4-9d2c-d70b517cc3d2" alt=""><figcaption><p>Wait Task Properties</p></figcaption></figure></div>

#### Step Name

The name shown on the workflow canvas. Use a name that explains why the workflow pauses here.

#### Wait Type

Sets where the wait duration comes from. Choose one option:

* **Static**: Enter a fixed duration in seconds. The default is 5 seconds, and you can enter a value from 0.0 to 60.
* **Cell Reference**: The duration is read from a cell on the sheet, so you can change it without editing the workflow. The value can be from 0.0 to 60 seconds.
* **Named Range Reference**: The duration is read from a Named Range in the workbook. The value can be from 0.0 to 60 seconds.

{% hint style="info" %}
Note: The maximum wait is 60 seconds. For Static, a value above 60 shows an error so you can correct it. For Cell Reference and Named Range Reference, a value above 60 is automatically treated as 60 seconds.
{% endhint %}

#### Loading Message

The message users see while the workflow is waiting. Use it to tell users what is happening, for example "Updating your records, please wait".

***

## Break Task

The Break Task ends a workflow. Place it as the last step on a branch of your workflow. When the workflow reaches the Break Task, the workflow stops there.

If the workflow was started by a Connected Workflow task, you can also choose how far the stop reaches: only this workflow and the one that called it, or every workflow in the chain.

### Add a Break Task

{% stepper %}
{% step %}
Open the workflow in the Workflow designer.
{% endstep %}

{% step %}
In the Toolbox, expand Utility Tasks and add Break Task to the canvas.
{% endstep %}

{% step %}
Connect it after the last step that should run before the workflow stops.
{% endstep %}

{% step %}
Select the Break Task and set its properties in the Workflow Settings panel.
{% endstep %}

{% step %}
Click Save.
{% endstep %}
{% endstepper %}

<figure><img src="https://2472585788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFqFFf4143HS0_Wagnz%2Fuploads%2FqbgmwneLXIO1GZjnY4XE%2Fimage.png?alt=media&amp;token=5d61575e-a432-452b-a58f-a24c21a881b3" alt=""><figcaption><p>Break Task</p></figcaption></figure>

### Break Task properties

<div align="left" data-with-frame="true"><figure><img src="https://2472585788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFqFFf4143HS0_Wagnz%2Fuploads%2Fx6NMOjMwN2WSz8Oqylap%2Fimage.png?alt=media&amp;token=9a65110a-093b-459b-ab0b-56fca93b0ec9" alt=""><figcaption><p>Break Task Properties</p></figcaption></figure></div>

#### Step Name

The name shown on the workflow canvas. Use a name that explains why the workflow stops here.

#### Break Scope

Sets how far the stop reaches when this workflow was run by another workflow. Choose one option:

* **Stop calling workflow**: Stops this workflow and the workflow that called it. Workflows above that continue from their next step.
* **Stop entire workflow**: Stops this workflow and every workflow above it, up to the top-level workflow.

#### Show notification

Select this option to show users a notification when the Break Task runs. Use it to tell users why the workflow stopped and what to do next. When selected, two more fields appear:

* **Notification Title**: The title of the notification. This field is required.
* **Notification Message**: The message shown below the title. This field is optional.&#x20;

### How Break Scope works

The table shows what happens in a three-level chain when the Break Task is in the child workflow.

<table><thead><tr><th valign="top">Workflow</th><th valign="top">Stop calling workflow</th><th valign="top">Stop entire workflow</th></tr></thead><tbody><tr><td valign="top">Child workflow (contains the Break Task)</td><td valign="top">Stops</td><td valign="top">Stops</td></tr><tr><td valign="top">Parent workflow</td><td valign="top">Stops. Its remaining steps do not run.</td><td valign="top">Stops. Its remaining steps do not run.</td></tr><tr><td valign="top">Top-level workflow</td><td valign="top">Continues from its next step</td><td valign="top">Stops. Its remaining steps do not run.</td></tr></tbody></table>

* Choose Stop calling workflow when the parent and child workflows handle one part of the process, and the top-level workflow should still finish its remaining steps.
* Choose Stop entire workflow when nothing else should run once the Break Task is reached.

{% hint style="info" %}
**Good to know:** Steps that ran before the Break Task keep their results. For example, data already displayed in Excel stays on the sheet.

**Note:** With Stop calling workflow, the stop reaches one level up. If the workflow that called the Break Task workflow is the top-level workflow, the whole run stops.
{% endhint %}

***

## Connected Workflow

The Connected Workflow task runs another existing workflow from inside the current workflow. Use it to build common steps once, such as validations, queries or data formatting, and reuse them in as many workflows as you need.

### Add a Connected Workflow task

{% stepper %}
{% step %}
Open the workflow in the Workflow designer.
{% endstep %}

{% step %}
In the Toolbox, expand **Utility Tasks** and add **Connected Workflow** to the canvas.
{% endstep %}

{% step %}
Connect it at the point where the other workflow should run.
{% endstep %}

{% step %}
Select the task and, in the Workflow field, choose the workflow to run.
{% endstep %}

{% step %}
Click Save.
{% endstep %}
{% endstepper %}

### Connected Workflow Task Properties

<div align="left" data-with-frame="true"><figure><img src="https://2472585788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFqFFf4143HS0_Wagnz%2Fuploads%2FlHExL0UVtVRmJGq8AlCF%2Fimage.png?alt=media&amp;token=bd4eee0f-9126-450b-9983-ba07ba84146c" alt=""><figcaption><p>Connected Workflow Task Properties</p></figcaption></figure></div>

#### Step Name

The name shown on the workflow canvas. The default is "Connected Workflow". Rename it to describe what the connected workflow does, for example "Call Quote Workflow".

#### Workflow

The existing workflow to run. Select it from the list of workflows in your app.

#### Loop Threshold Value

The maximum number of loop iterations allowed. The default is 10.

#### Resume when connected workflow fails/cancels

Select this option to let the current workflow continue with its next step even if the connected workflow fails or is canceled. Leave it cleared if the current workflow should stop when the connected workflow does not complete.

### Example: Calling a Connected Workflow

A Quote WF Connector workflow contains all the steps for handling quote lines, price books and price book entries.&#x20;

<figure><img src="https://2472585788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFqFFf4143HS0_Wagnz%2Fuploads%2FEFRXPcF7s8Gy2WMexugM%2FWF%20Connector.png?alt=media&amp;token=17307740-dc64-4b3b-bf92-1bf002a64a30" alt=""><figcaption><p>Quote WF Connector</p></figcaption></figure>

Instead of rebuilding these steps, other workflows such as Opportunity LFS use a Connected Workflow task to run Quote WF Connector.

The result? Cleaner, more manageable workflows.

<figure><img src="https://2472585788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFqFFf4143HS0_Wagnz%2Fuploads%2FaJLkzVn2ox9j9v9cNMb8%2FWorkflow%20connected%20workflow.gif?alt=media&amp;token=38cbc7d2-90f2-497f-a0a0-c48fe568edd5" alt=""><figcaption><p>Workflow : Opportunity LFS.</p></figcaption></figure>
