Soft Pastel
Minimalist
Warm Pro
Fresh Mint
๐งบ LaundryLog Event Modeling Diagram
Truck Driver Laundry Expense Tracking System
Command Slice
OpenApp
Truck driver opens the LaundryLog app
019644a1-b1a0-7000-8000-000000000100
๐ฑ
Origin: Splash Screen
โผ
๐ฑ
app-splash-screen.png
View
๐ค TruckDriver
business
emd
โก
Command
โผ
Name
OpenApp
business
emd
๐ง
Handler
โผ
Name
OpenAppHandler
business
๐ข
Event: AppOpened
โผ
openedAt
datetime
business
emd
๐
Show GWT Rules
๐ฏ
GWT Rules
โผ
Rule: OpenApp
Given
Unit
When
OpenApp
Then
AppOpened
No prior state needed. App opened.
business
emd
gwt
Command Slice
SetLocation
Truck driver provides the laundromat location
019644a1-b1a0-7000-8000-000000000300
๐
Origin: Get Location
โผ
๐
get-location-screen.png
View
๐ค TruckDriver
business
emd
โก
Command
โผ
location
string
business
emd
๐ง
Handler
โผ
Name
SetLocationHandler
business
๐ข
Event: LocationSet
โผ
location
string
business
emd
๐
Show GWT Rules
๐ฏ
GWT Rules
โผ
Rule: SetLocation
Given
[AppOpened]
When
SetLocation
Then
LocationSet
App has been opened, driver provides location.
business
emd
gwt
View Slice
CurrentLocation
Provides the current laundromat location for expense entry
019644a1-b1a0-7000-8000-000000000400
๐ฑ
Origin: No Screen
โผ
๐ค None
business
๐ญ
Projector
โผ
Name
CurrentLocationProjector
business
๐๏ธ
View
โผ
location
string
business
emd
๐
Show GWT Rules
๐ฏ
GWT Rules
โผ
Rule: LocationAvailable
Given
[LocationSet]
Then
CurrentLocation
Location has been set, provide it for expense entry.
business
emd
gwt
Command Slice
LogExpense
Truck driver logs a laundry expense
019644a1-b1a0-7000-8000-000000000500
๐ฐ
Origin: Expense Entry
โผ
๐ฐ
expense-entry-screen.png
View
๐ค TruckDriver
business
emd
โก
Command
โผ
machineType
string
quantity
int
pricePerMachine
decimal
paymentMethod
string
location
string
business
emd
๐ง
Handler
โผ
Name
LogExpenseHandler
business
๐ข
Event: LaundryExpenseLogged
โผ
expenseId
guid
machineType
string
quantity
int
pricePerMachine
decimal
totalCost
decimal
paymentMethod
string
location
string
loggedAt
datetime
business
emd
๐
Show GWT Rules
๐ฏ
GWT Rules
โผ
Rule: LogNewExpense
Given
[LocationSet]
When
LogExpense
Then
LaundryExpenseLogged
Location must be established. Driver logs expense details.
business
emd
View Slice
RecentExpenses
Shows recently logged laundry expenses
019644a1-b1a0-7000-8000-000000000600
๐ฑ
Origin: No Screen
โผ
๐ค None
business
๐ญ
Projector
โผ
Name
RecentExpensesProjector
business
๐๏ธ
View
โผ
expenses
list
totalSpent
decimal
expenseCount
int
location
string
business
emd
๐
Show GWT Rules
๐ฏ
GWT Rules
โผ
Rule: RecentExpensesWithinWindow
Given
[LaundryExpenseLogged]
When
loggedAt within 3 hours
Then
RecentExpenses
Shows all expenses logged within the last 3 hours.
business
emd
gwt
Expand All
Collapse All
Toggle GWT
Screen Preview
ร
๐ฑ
Screen image would load here
File:
screenshot.png