Domain Stories (PlantUML)
This page demonstrates a Domain Story rendered via PlantUML using the DomainStory-PlantUML macro library:
- Project: johthor/DomainStory-PlantUML
Domain Storytelling can be a useful bridge between conceptual domain models and more technical UML design models.
DomainStory-PlantUML syntax (reference)
The official macro-based notation uses an include from the DomainStory-PlantUML project:
@startuml
!includeurl https://raw.githubusercontent.com/johthor/DomainStory-PlantUML/main/domainStory.puml
!$Story_Layout = "left-to-right"
Person(Customer, "Customer")
System(TicketMachine, "Ticket Machine")
activity(1, Customer, selects, Info: Movie, at, TicketMachine)
@enduml
Example: Story flow (rendered in this test site)
To keep this test site build-stable across environments, we render a plain PlantUML story-flow diagram here.
Why this matters
- Domain Stories are often easier to validate with non-technical stakeholders.
- Work objects (ticket, payment, request, etc.) become explicit in the model.
- The flow can be validated early, before committing to technical class/method design details.