Online shop use case diagram
Buyers, sellers and the payment gateway in an online shop. Ordering includes paying; using a coupon optionally extends paying.
The diagram
Reading it step by step
- The system boundary is 'Online shop'.
- Actor 'Buyer' uses 'Search products', 'Place order'.
- Actor 'Seller' uses 'List products', 'Check orders'.
- Actor 'Payment gateway' uses 'Pay'.
- 'Place order' always includes 'Pay'.
- 'Use coupon' extends 'Pay' under a condition.
Shape by shape
| Shape | Symbol | Connections |
|---|---|---|
| Online shop | System boundary | - |
| Buyer | Actor | → Search products, Place order |
| Seller | Actor | → List products, Check orders |
| Payment gateway | Actor | → Pay |
| Search products | Use case | ← Buyer |
| Place order | Use case | → Pay · ← Buyer |
| List products | Use case | ← Seller |
| Check orders | Use case | ← Seller |
| Pay | Use case | ← Place order, Payment gateway, Use coupon |
| Use coupon | Use case | → Pay |
Symbols used here
| Symbol | Meaning |
|---|---|
| Actor | A user role or an outside system; a stick figure. |
| Use case | One goal the user achieves; an oval. |
| System boundary | What the system covers; a large rectangle. |
| Include | Always run as part of the base use case. |
| Extend | Added to the base only under a condition. |
Diagram text
Paste this text into the editor to get the same picture, then change the names to fit your own work.
# Online shop use case diagram
usecase
system Online shop
actor Buyer
actor Seller
actor Payment gateway
(Search products)
(Place order)
(List products)
(Check orders)
(Pay)
(Use coupon)
Buyer -- (Search products)
Buyer -- (Place order)
Seller -- (List products)
Seller -- (Check orders)
(Place order) ..> (Pay) : include
Payment gateway -- (Pay)
(Use coupon) ..> (Pay) : extend