This page explains the master data that is set up for the Swabian Clothing example.
Order Status & Event chains
In this example we're using a simple three step status chain for our orders.
A newly created order, that has not received any events has the status
NEW. After that it can have the status
Processed which indicates that the order is done from our side (shipped to the customer).
Fulfilled indicates that the order was fulfilled.
To set a order to the processed state send the
SHIPPED event, to set it to fulfilled send the
Shipment Status & Event chains
In this example we're using a simple three step status chain for our Shipments.
A newly created shipment, that has not received any events has the status
Prepared, we only create the shipment object once it is prepared.
After that it can have the status
Shipped which indicates that the shipment is out of our hands (shipped to the customer).
Received indicates that the carrier has delivered the shipment.
Additionally we added propagations, so that a
Shipped on the consignment also triggers the
Shipped event on the corresponding order. The same goes for
By doing so, we save duplicate calls to shipments and orders.
Updated over 3 years ago