Two-party collaboration between a pizza customer and a pizza vendor, with timeout-based follow-up and message-triggered branching.
The customer selects a pizza and places an order. After ordering, the customer waits for either a delivery confirmation message or a 60-minute timer to expire. If the timer fires, the customer asks for the pizza, and then waits again. When the pizza arrives, the customer pays and eats. On the vendor side, the order is received and the clerk checks the kitchen status. The Pizzaiolo bakes the pizza, and the delivery boy delivers it and collects payment.
| Activity | Actor |
|---|---|
| Select Pizza | Customer |
| Order Pizza | Customer |
| Ask for Pizza | Customer |
| Pay for Pizza | Customer |
| Eat Pizza | Customer |
| Receive Order | Clerk |
| Bake Pizza | Pizzaiolo |
| Deliver Pizza | Delivery Boy |
| Collect Payment | Delivery Boy |