Skip to content

Instantly share code, notes, and snippets.

@beabetterdevv
Created September 17, 2024 14:19
Show Gist options
  • Save beabetterdevv/c42112773a5e852ac9b1b8175bbff49a to your computer and use it in GitHub Desktop.
Save beabetterdevv/c42112773a5e852ac9b1b8175bbff49a to your computer and use it in GitHub Desktop.
@startuml
skin rose
autonumber
title Customer Order Workflow on Website
actor Customer
participant Website
participant OrderService
participant CustomerService
Customer -> Website: Click PlaceOrder
Website -> OrderService: **PlaceOrder** (customerld, items)
OrderService -> CustomerService: **GetCustomer** (customerld) CustomerService --> OrderService: Customer
OrderService -> OrderService: Evaluate Customer State
alt Customer.getStateO is DISABLED
OrderService --> Website: CustomerAccountDisabledException
else Customer.getState() is ACTIVE
loop for each item in items
note right of OrderService: TODO - Refactor this to batch call OrderService -> OrderService: saveltem
end loop
OrderService --> Website: Success
end alt
@enduml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment