State Machine


We’re sorry but this documentation section is outdated. Please have that in mind when trying to use it. You can help us making documentation up to date via Sylius Github. Thank you!

Order States

Sylius itself uses a complex state machine system to manage all states of the business domain. This component has some sensible default states defined in the OrderInterface.

All new Order instances have the state cart by default, which means they are unconfirmed.

The following states are defined:

Related constant State Description
STATE_CART cart Unconfirmed order, ready to add/remove items
STATE_NEW new Confirmed order
STATE_CANCELLED cancelled Cancelled by customer or manager
STATE_FULFILLED fulfilled Order has been fulfilled


Please keep in mind that these states are just default, you can define and use your own. If you use this component with SyliusOrderBundle and Symfony, you will have full state machine configuration at your disposal.

Order Transitions

There are following order’s transitions by default:

Related constant Transition

There is also the default graph name included:

Related constant Name
GRAPH sylius_order


All of above transitions and the graph are constant fields in the OrderTransitions class.