---
url: 'https://dxpr.com/hc/documentation/learn-drupal/drupal-glossary/workflow'
title: 'Workflow | DXPR'
author:
  name: Jurriaan
  url: 'https://dxpr.com/users/jurriaan'
date: '2023-11-06T09:16:59+00:00'
updated: '2026-10-26T18:01:04+00:00'
copyright: 'Copyright DXPR. All rights reserved.'
type: article
summary: 'A workflow in Drupal is a configuration entity of the core Workflows module: a named set of states and the transitions allowed between them.'
tags:
  - 'Drupal glossary'
image: 'https://dxpr.com/themes/custom/dxpr_com/images/dxpr-share-card.jpg'
published: true
og:
  site_name: DXPR
  updated_time: '2026-10-26T18:01:04+0000'
  'image:alt': 'DXPR, powered by Drupal: AI-powered Drupal for marketers.'
schema:
  '@context': 'https://schema.org'
  '@graph':
    -
      '@type': FAQPage
      mainEntity:
        -
          '@type': Question
          name: 'What is the difference between Workflows and Content Moderation in Drupal?'
          acceptedAnswer:
            '@type': Answer
            text: '<p>Workflows is the core module that lets you define states and transitions, with an admin screen and an API. Content Moderation is a workflow type from another core module that applies such a workflow to content, so the states control publishing. Workflows alone does not moderate anything.</p>'
        -
          '@type': Question
          name: 'Where do I create a workflow in Drupal?'
          acceptedAnswer:
            '@type': Answer
            text: '<p>Go to Configuration, then Workflow, then Workflows (/admin/config/workflow/workflows) and choose to add a workflow. Enter a Label and pick the Workflow type. A workflow needs at least one state before it is enabled, so Drupal sends you to the add-state form.</p>'
        -
          '@type': Question
          name: 'Is a Drupal workflow stored as content or configuration?'
          acceptedAnswer:
            '@type': Answer
            text: '<p>Configuration. A workflow is a config entity that exports its ID, label, type and the type&#039;s settings, which hold the states and transitions. You can deploy it with <a href="/hc/documentation/learn-drupal/drupal-glossary/configuration-management">configuration management</a> like any other setting.</p>'
    -
      '@type': TechArticle
      headline: Workflow
      description: 'A workflow in Drupal is a configuration entity of the core Workflows module: a named set of states and the transitions allowed between them.'
      image:
        '@type': ImageObject
        url: 'https://dxpr.com/themes/custom/dxpr_com/images/dxpr-share-card.jpg'
        width: '1200'
        height: '630'
      datePublished: '2023-11-06T09:16:59+0000'
      dateModified: '2026-10-26T18:01:04+0000'
      author:
        '@type': Organization
        '@id': 'https://dxpr.com/#organization'
        name: DXPR
        url: 'https://dxpr.com/'
        logo:
          '@type': ImageObject
          url: 'https://dxpr.com/themes/custom/dxpr_com/dxpr-logo-dark.svg'
          width: '1348'
          height: '501'
      publisher:
        '@type': Organization
        '@id': 'https://dxpr.com/#organization'
        name: DXPR
        url: 'https://dxpr.com/'
        logo:
          '@type': ImageObject
          url: 'https://dxpr.com/themes/custom/dxpr_com/dxpr-logo-dark.svg'
          width: '1348'
          height: '501'
      mainEntityOfPage: 'https://dxpr.com/hc/documentation/learn-drupal/drupal-glossary/workflow'
      articleSection: 'Drupal glossary'
    -
      '@type': WebPage
      '@id': 'https://dxpr.com/hc/documentation/learn-drupal/drupal-glossary/workflow'
      description: 'A workflow in Drupal is a configuration entity of the core Workflows module: a named set of states and the transitions allowed between them.'
      breadcrumb:
        '@type': BreadcrumbList
        itemListElement:
          -
            '@type': ListItem
            position: 1
            name: Home
            item: 'https://dxpr.com/'
      publisher:
        '@type': Organization
        '@id': 'https://dxpr.com/#organization'
        name: DXPR
      inLanguage: en
---
[Help Center](/hc)/[Documentation](/hc/documentation) /[Learn Drupal](/hc/documentation/learn-drupal) /[Drupal glossary](/hc/documentation/learn-drupal/drupal-glossary)

# Workflow

A workflow in Drupal is a configuration entity of the core Workflows module: a named set of states and the transitions allowed between them.

 Learn DrupalDrupal glossary Last updated October 26, 2026

## In this guide

Related terms

- [Workflow states](/hc/documentation/learn-drupal/drupal-glossary/workflow-states)
- [Content moderation](/hc/documentation/learn-drupal/drupal-glossary/content-moderation)
- [Editorial workflow](/hc/documentation/learn-drupal/drupal-glossary/editorial-workflow)
- [Configuration](/hc/documentation/learn-drupal/drupal-glossary/configuration)
- [Permission](/hc/documentation/learn-drupal/drupal-glossary/permission)
- [Plugin API](/hc/documentation/learn-drupal/drupal-glossary/plugin-api)

 [All Drupal terms from A to Z](/hc/documentation/learn-drupal/drupal-glossary)

A Drupal workflow describes a process as stages and the moves allowed between them, for example from Draft to Published. It is stored as configuration. On its own it only describes a process; a workflow type, such as the one from Content Moderation, connects it to something real, such as publishing a page.

## How workflows work in Drupal 11

The Workflows module provides an admin interface and an API. The module description says the states come from other modules, for example publication status. The workflow itself is the config entity `Drupal\workflows\Entity\Workflow`. It exports four keys: `id`, `label`, `type` and `type_settings`. The collection page is `/admin/config/workflow/workflows` and it needs the Administer workflows permission.

The `type` value names a workflow type [plugin](/hc/documentation/learn-drupal/drupal-glossary/plugin-api). The type plugin owns the behavior: it keeps the states and transitions (methods such as `addState()`, `addTransition()` and `getTransitionsForState()` live on `WorkflowTypeInterface`) and lists the states it requires. The Content Moderation type, with ID `content_moderation`, requires a draft and a published state.

A transition has a label, one or more states it starts from, and one state it leads to. Modules that use a workflow, like Content Moderation, build their permissions on transitions, so a role can be allowed one move but not another.

## Example

This shortened excerpt is from the Editorial workflow that Drupal core ships in the Standard profile. The file is named `workflows.workflow.editorial.yml`.

```yaml
id: editorial
        label: Editorial
        type: content_moderation
        type_settings:
          states:
            draft:
              label: Draft
              published: false
              default_revision: false
            published:
              label: Published
              published: true
              default_revision: true
          transitions:
            publish:
              label: Publish
              from:
                - draft
                - published
              to: published
          default_moderation_state: draft
```

The full file also defines an Archived state and four more transitions.

## Common mistakes

- **Enabling Workflows and expecting moderated content.** Without a type that is applied to content types, a workflow changes nothing on your pages.
- **Deleting a state that is in use.** Drupal refuses while content uses it. It also refuses to delete the last state or one the workflow type requires.
- **Rebuilding the workflow by hand on each environment.** It is configuration, so export it and import it where you need it.
- **Forgetting the transition permissions.** With Content Moderation, a role can only use the transitions it has been granted.

## For marketing and content teams

The workflow is the written process of your team in a form Drupal can enforce. Decide the stages (for example write, review, publish) and which role makes each move, then ask your site builder to set up [Content Moderation](/hc/documentation/learn-drupal/drupal-glossary/content-moderation) to match. The individual stages are explained under [workflow states](/hc/documentation/learn-drupal/drupal-glossary/workflow-states).

## Sources

- [Drupal.org: Workflows module](https://www.drupal.org/docs/8/core/modules/workflows)
- [Workflows module definition, Drupal core source (11.4.x)](https://git.drupalcode.org/project/drupal/-/raw/11.4.x/core/modules/workflows/workflows.info.yml)
- [Workflow entity, Drupal core source (11.4.x)](https://git.drupalcode.org/project/drupal/-/raw/11.4.x/core/modules/workflows/src/Entity/Workflow.php)
- [Workflow class, Drupal API](https://api.drupal.org/api/drupal/core%21modules%21workflows%21src%21Entity%21Workflow.php/class/Workflow/11.x)
- [WorkflowTypeInterface, Drupal API](https://api.drupal.org/api/drupal/core%21modules%21workflows%21src%21WorkflowTypeInterface.php/interface/WorkflowTypeInterface/11.x)
- [WorkflowAddForm, Drupal core source (11.4.x)](https://git.drupalcode.org/project/drupal/-/raw/11.4.x/core/modules/workflows/src/Form/WorkflowAddForm.php)
- [Editorial workflow of the Standard profile, Drupal core source (11.4.x)](https://git.drupalcode.org/project/drupal/-/raw/11.4.x/core/profiles/standard/config/optional/workflows.workflow.editorial.yml)
- [Drupal.org: Content Moderation overview](https://www.drupal.org/docs/8/core/modules/content-moderation/overview)

## Questions about Drupal workflows

### What is the difference between Workflows and Content Moderation in Drupal?

Workflows is the core module that lets you define states and transitions, with an admin screen and an API. Content Moderation is a workflow type from another core module that applies such a workflow to content, so the states control publishing. Workflows alone does not moderate anything.

### Where do I create a workflow in Drupal?

Go to Configuration, then Workflow, then Workflows (`/admin/config/workflow/workflows`) and choose to add a workflow. Enter a Label and pick the Workflow type. A workflow needs at least one state before it is enabled, so Drupal sends you to the add-state form.

### Is a Drupal workflow stored as content or configuration?

Configuration. A workflow is a config entity that exports its ID, label, type and the type's settings, which hold the states and transitions. You can deploy it with [configuration management](/hc/documentation/learn-drupal/drupal-glossary/configuration-management) like any other setting.

## Cite this definition

"Workflow." DXPR Drupal glossary, https://dxpr.com/hc/documentation/learn-drupal/drupal-glossary/workflow. Last updated October 26, 2026.

 Copy

## Related terms

- [Workflow states](/hc/documentation/learn-drupal/drupal-glossary/workflow-states)
- [Content moderation](/hc/documentation/learn-drupal/drupal-glossary/content-moderation)
- [Editorial workflow](/hc/documentation/learn-drupal/drupal-glossary/editorial-workflow)
- [Configuration](/hc/documentation/learn-drupal/drupal-glossary/configuration)
- [Permission](/hc/documentation/learn-drupal/drupal-glossary/permission)
- [Plugin API](/hc/documentation/learn-drupal/drupal-glossary/plugin-api)

[All Drupal terms from A to Z](/hc/documentation/learn-drupal/drupal-glossary)