> For the complete documentation index, see [llms.txt](https://doc.wearepatchworks.com/product-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.wearepatchworks.com/product-documentation/virtual-environments/implementing-virtual-environments/configuring-a-virtual-environment-version/configuring-virtual-environment-replacements/replacement-flow-queue-priorities.md).

# Replacement flow queue priorities

## Introduction

When building a process flow, you can set a [queue priority](/product-documentation/process-flows/building-process-flows/process-flow-settings.md) to determine how the flow is picked from [your queue](https://doc.wearepatchworks.com/product-documentation/process-flows/error-reporting-and-exception-handling/run-logs-and-queue#working-with-your-run-queue) for processing.

When configuring a virtual environment, you can override the `flow queue priority` that's currently defined (in [process flow settings](/product-documentation/process-flows/building-process-flows/process-flow-settings.md#understanding-process-flow-settings)) for any process flows deployed to the environment.

## Defining flow queue priorities

To define flow queue priorities for process flows running in a virtual environment, follow the steps below.

{% stepper %}
{% step %}
**Edit the configuration for the required virtual environment**

If you're not already editing the configuration for your virtual environment, [access it now](/product-documentation/virtual-environments/implementing-virtual-environments/configuring-a-virtual-environment-version.md#accessing-the-draft-version-for-a-new-virtual-environment).
{% endstep %}

{% step %}
**Access flow queue priorities**

Select `flow queue priorities` from the list of [replacements](/product-documentation/virtual-environments/implementing-virtual-environments/configuring-a-virtual-environment-version/configuring-virtual-environment-replacements.md):

<div align="left"><figure><img src="/files/Qw5sITiSRc5ebXUeLCLb" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
**Create a new flow priority**

Click the `create` button:

<figure><img src="/files/T1HgiYShFkQARRb3UlUg" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Select the first process flow to update**

Click in the `flow` field and select the first process flow that you want to override - for example:

<figure><img src="/files/ZiGvd4Wwr0uDV4xo8m4O" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
All process flows are available for selection here - it doesn't matter if they haven't been deployed to this environment yet. Use the search option to find a specific flow.
{% endhint %}
{% endstep %}

{% step %}
**Set the required priority**

Click in the `queue priority` field and select the required priority for this process flow - for example:
{% endstep %}

{% step %}

<figure><img src="/files/k0tIZkoZc7zo43h8zw6v" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Confirm your selections**

Click the `create` button to confirm your selections - for example:

<figure><img src="/files/MkRUB6Ph9RiUVn2fDh8R" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Repeat for additional process flows**

Repeat steps 3 to 7 for any additional flows that you want to update.
{% endstep %}
{% endstepper %}
