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:
|STATE_CART||cart||Unconfirmed order, ready to add/remove items|
|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.
There are following order’s transitions by default:
There is also the default graph name included:
All of above transitions and the graph are constant fields in the OrderTransitions class.