Order Processing State Machine
A full-lifecycle order state machine covering Pending, Confirmed, Processing, Shipped, Delivered, Cancelled, and Returned. Each transition arrow carries a descriptive event label such as payment verified, carrier assigned, or delivery confirmed, plus guard conditions that control when cancellation is permitted.
Create a professional UML state diagram for an order processing system. States: Pending, Confirmed, Processing, Shipped, Delivered, Cancelled, Returned. Transitions: Pending to Confirmed (payment received), Confirmed to Processing (warehouse picks), Processing to Shipped (carrier assigned), Shipped to Delivered (delivery confirmed). Cancelled reachable from Pending, Confirmed, Processing with guard conditions. Returned from Delivered within 30 days. Initial and final pseudo-states, standard UML rounded rectangles, white background