Imagine there are two statuses that an application is operating with, e.g. order status and shipment status.
When the order status is placed, the shipment status is blank. When the order status is "paid", the shipment status is "ready to ship". Then the shipment status is being changed to "assigned" through "shipped", "on delivery" and "delivered". Should the order status be set to "Cancelled" the "shipped" or "on delivery" shipment status is changed to "being returned" and then "received at the warehouse".
What is the best way to describe the interaction between the two statuses on a diagram?
I know two types of diagrams that could be utilized here, but both have drawbacks for the task:
- Activity Diagram - will perfectly describe the use cases, but is hard to read
- State Machine Diagram - can only describe one status, so there can be two state diagrams, but it won't be clear how the statuses interact with each other.
What would you recommend?