
π Student Projects (College Reports) Β· Sequence
Checkout on a shopping website: stock check, payment and order confirmation.
Drawing diagramβ¦
Sequence diagram for placing an order on a shopping website: the customer clicks checkout; the order service checks and reserves stock with the inventory service; the payment gateway charges the customer; on success the order is confirmed, the seller is notified to pack it and the customer gets an SMS; on failure the stock reservation is released.
sequenceDiagram
actor C as Customer
participant W as Website
participant O as Order Service
participant I as Inventory Service
participant P as Payment Gateway
participant N as Notification Service
C->>W: Checkout
W->>O: Create order
O->>I: Reserve stock
I-->>O: Reserved
O->>P: Charge customer
alt Payment successful
P-->>O: Success
O->>O: Confirm order
O->>N: Notify seller to pack
O->>N: Send order SMS to customer
O-->>W: Order confirmed
else Payment failed
P-->>O: Failed
O->>I: Release stock
O-->>W: Payment failed, try again
endWho uses a college library system and what each of them can do: members, the librarian and the system administrator.
The database of a library system: books and their copies, authors, members, loans, reservations and fines, with keys and cardinality.
How data moves through a library system: members and the librarian, the main processes, and the data stores they read and write.
The main classes of a library system with attributes, methods and UML relationships.
The steps when a member borrows a book: checks, loan record and the copy status update.
What students, examiners and the administrator do in an online examination system.