Drupal 8 core has an experimental module called Workflows.

There is also a contrib moduled called Workflow.

There's also the Workspace module, which is associated with the Deploy module.

Commerce 2 uses State Machine, another module that provides workflow management in Drupal 8.

What are the differences between these four modules?

Is one more future-proof than the others? Normally, I would assume the module in core has the brightest future, but in this case Commerce picked a different module (perhaps because the core module wasn't ready?). And in D7, Workflow has a large following.

  • To clarify an old question, State Machine was created a few years before the core Workflows module (Dec 2015 vs Apr 2017). As of Nov 2018, the Workflows module still isn't feature equivalent (no events fired, no field type for storing the state ID and allowing multiple workflows per entity, etc). – Bojan Zivanovic Nov 10 at 21:06

There are also content moderation module which aims to define content states. From my understanding, core Workflows is API and UI to utilize the moderation states and transition. I am not sure if core Workflows could work with states machine, but logically it should.

Core Workflows and contributed core Workflow must be similar in their general goal, but provides different widgets, and architecture.

It is very interesting question and I would be happy to hear some clarification.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.