Workflow

Component ID

3323

Component name

Workflow

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

254038

Component created

Component changed

Component body

This module allows you to create arbitrary Workflows, and assign them to Entities.

Workflows are made up of workflow states. Transitions between states can be allowed per role. For example, a workflow with the states Draft, Review, and Published could be assigned to the Story node type. Only users with role 'chief editor' can set Stories to the published state.
You can set up the Workflow to alter states from form, page, comment, a special block, and a special workflow tab.
Additionally, the submodule Workflow Access allows you to manage view/edit/delete permissions for content types per User role and Workflow state.

Transitions between workflow states can have actions assigned to them. In our example, we could assign an action so that when the story moves from the Draft state to the Review state an email is sent out. Another action could be assigned to the transition from Review to Published so that the node's status is set to Published (and becomes visible on your website).

A nice overview is published by Michael J. Ross in Drupal Watchdog. More detailed info can be found at the Workflow documentation page. You can update that page yourself, with anything you have learned anything when implementing this module.
If you are interested in the future of the workflow module, please join the workflow group on groups.drupal.org.

Developer notes: If you are upgrading your custom, Workflow supporting, module please review the available functions and check the change records.
The D8-version has renamed hooks and function names, to align with D8 practices.
Check the file workflow.api.php for explanation of each hook.

Drupal 8 version
A new and shiny Drupal 8 version is available. The functionality is mostly identical to version 7.x-2.5. Some permissions have been moved to the 'normal' permissions page.

There is still lots to do, and any help is much appreciated. See the list of open tasks.

Drupal 7 versions
To find the new features in D7 versions, see the page with New features in D7 version

Related Projects

  • Workflow Extensions compatible with version 7.x-1.x. Its functionality is incorporated in version 7.x-2.x. Disable when upgrading from 1.x to 2.x.
  • Workflow Fields now compatible with Workflow 7.x-1.2. There is an open issue for compatibility with 7.x-2.x
  • Workflow Named Transitions compatible with version 7.x-1.x. Its functionality is incorporated in version 7.x-2.x. Disable when upgrading from 1.x to 2.x.
  • OG Workflow