Created
September 17, 2024 14:19
-
-
Save beabetterdevv/c42112773a5e852ac9b1b8175bbff49a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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