# Replacement flow queue priorities

## Introduction

When building a process flow, you can set a [queue priority](https://doc.wearepatchworks.com/product-documentation/process-flows/building-process-flows/process-flow-settings) 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.&#x20;

When configuring a virtual environment, you can override the `flow queue priority` that's currently defined (in [process flow settings](https://doc.wearepatchworks.com/product-documentation/process-flows/building-process-flows/process-flow-settings#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](https://doc.wearepatchworks.com/product-documentation/virtual-environments/implementing-virtual-environments/configuring-a-virtual-environment-version/..#accessing-the-draft-version-for-a-new-virtual-environment).
{% endstep %}

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

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

<div align="left"><figure><img src="https://2440044887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYNcUBVQwSkOMG6KjZfz%2Fuploads%2FgsEBcFQfO0wKHaoKAVft%2Fflow%20queue%20priorities%201.png?alt=media&#x26;token=b83be21b-c123-4c9e-aac6-e444a31e71b4" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

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

Click the `create` button:

<figure><img src="https://2440044887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYNcUBVQwSkOMG6KjZfz%2Fuploads%2FpbV8eF4z0dOQp370OTU7%2Fflow%20queue%20priorities%202.png?alt=media&#x26;token=9a79032e-50f3-48d4-9819-504f8433ff94" 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="https://2440044887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYNcUBVQwSkOMG6KjZfz%2Fuploads%2Fby86AYSA94EeIS2tCSk5%2Fflow%20queue%20priorities%202a.png?alt=media&#x26;token=587e5302-0fe8-4099-b055-825d49561fbf" 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.&#x20;
{% 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="https://2440044887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYNcUBVQwSkOMG6KjZfz%2Fuploads%2FMqj3vC6zgRzO9FpO0R9q%2Fflow%20queue%20priorities%202b.png?alt=media&#x26;token=c419bc02-2a4c-4771-95aa-a623923d5776" alt=""><figcaption></figcaption></figure>
{% endstep %}

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

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

<figure><img src="https://2440044887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYNcUBVQwSkOMG6KjZfz%2Fuploads%2FAuPN9QBNhJhKIzQJa2lN%2Fflow%20queue%20priorities%203.png?alt=media&#x26;token=5438e090-e78e-4269-accb-c1b58c0a25fa" 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 %}
