“Create an event storming diagram for a hotel booking: Request booking causes Booking requested; an availability policy causes Room held; capture deposit causes Deposit captured; confirm reservation causes Reservation confirmed; then a confirmation policy sends the confirmation. Color commands blue, events orange, and policies green.”
図の背後にある意思決定を読み解く。
Define how long a room hold lasts.
Model deposit capture as its own action.
Make Reservation confirmed the final business event.
Use for a reservation flow where availability and payment are distinct concerns.
よくある質問
Why is Room held an event?
It records that availability has been temporarily reserved.
What happens if payment fails?
Add a failed-payment event and a policy for releasing or retaining the hold.
Why separate confirmation from payment?
A reservation rule may require more than a successful deposit before confirmation.