A workflow component with framework integration coming in Symfony 3.2

By text definition a workflow is a sequence of connected steps tied to objects of some sorts. In each step a set of validations and actions are be applied. Most web developers are familiar with these type of flows and have likely implemented a workflow in one form or another.

In the Symfony world there have been alternatives for creating workflows like this, but with the upcoming release the Symfony project will have a dedicate component for creating and visualising workflows.

The work has been underway since 2014 by Grégoire Pineau, but things moved forward in the past weeks as the workflow component is to be included in Symfony 3.2 with complete integration to the full stack framework.

The component allows developers to define workflows like publishing and approval in a unified way using code or alternatively configuration when using the Symfony full stack framework:

In addition to pure code or configuration views, developers can visualize their workflows to make them more accessible. An sample visualisation is the one below is implemented in the example application from Grégoire presented at Symfony Live Paris this April. It displays the current state of an article in a publishing workflow:

The track record that Symfony has for stability and support makes the new component a worthwhile option in the long term. It is worth noting that the Symfony 3.2 release is not due until November 2016, so there is still plenty of work that needs to be done with documentation and so forth.

At this point the best place to learn about the upcoming Symfony Workflow component are: