# Enabling & disabling a process flow

## Introduction

Having built or updated a process flow, it must be `deployed` and `enabled` before it runs automatically, according to defined [trigger shape](/product-documentation/process-flows/building-process-flows/process-flow-shapes/standard-shapes/trigger-shape.md) settings (or [API requests](/product-documentation/developer-hub/patchworks-core-api.md)). How you do this depends on whether the [virtual environments](/product-documentation/virtual-environments/about-virtual-environments.md) feature is enabled for your company profile.&#x20;

* If yes, you have the option to enable/disable specific deployments of a process flow (bearing in mind that any version of a single flow can be deployed to multiple environments). There are multiple ways to do this - for details, please refer to [Enabling & disabling a flow deployment (with virtual environments)](/product-documentation/process-flows/managing-process-flows/enabling-and-disabling-a-process-flow/enabling-and-disabling-a-flow-deployment-with-virtual-environments.md).
* If no, you will only ever have a single deployment for any process flow; therefore, the enable/disable option applies to the flow as a whole. For details, please refer to [Enabling & disabling a flow deployment (without virtual environments)](/product-documentation/process-flows/managing-process-flows/enabling-and-disabling-a-process-flow/enabling-and-disabling-a-process-flow-without-virtual-enviroments.md).

## How do I know if virtual environments are enabled?

If you're not sure whether virtual environments are enabled, check the left-hand navigation menu - if you see a `virtual environments` section, this feature is enabled:

<div align="left"><figure><img src="/files/YLGvNKOkglPZvbFx37Lr" alt=""><figcaption></figcaption></figure></div>

## Pages in this section

* [Enabling & disabling a flow deployment (with virtual environments)](/product-documentation/process-flows/managing-process-flows/enabling-and-disabling-a-process-flow/enabling-and-disabling-a-flow-deployment-with-virtual-environments.md)
* [Enabling & disabling a flow deployment (without virtual environments)](/product-documentation/process-flows/managing-process-flows/enabling-and-disabling-a-process-flow/enabling-and-disabling-a-process-flow-without-virtual-enviroments.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.wearepatchworks.com/product-documentation/process-flows/managing-process-flows/enabling-and-disabling-a-process-flow.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
