Event Flow Diagrams
This page demonstrates the event flows in the Roll Claw system using Mermaid diagrams.
Cat Lifecycle Flows
Birth-to-TNR Flow
Example from Lime Factory:
- In June 2017, Sheba gave birth to kittens: Moo, Ricky Bobby, Broncho, Kylo, and Orange Kitty
- Orange Kitty became deceased
- On Dec 12, 2018, Moo was neutered and left ear tipped at Patient Paws Mobile
- Moo was later documented with a black and white tuxedo coat pattern
Health Emergency Flow
Example from Lime Factory:
- On June 15, 2021, Lucky showed symptoms of Upper Respiratory Infection (URI)
- On June 19, 2021, Lucky visited ER Vet
- On July 21, 2021, Lucky visited ER Vet again, severely dehydrated, anemic, low proteins, possible FIP
- On July 22, 2021, Lucky was euthanized and became deceased
Command-Event Flow
This diagram shows how user commands generate events in the system:
Cat Relationship Model
The following diagram shows how cats are related in a colony:
Event Sourcing Architecture
The event sourcing architecture for Roll Claw:
- Commands are sent from the user interface
- Command handlers validate and process commands
- Domain logic applies business rules
- Events are generated to record state changes
- Events are stored in the event store
- Projections create read models from events
- Read models are used by the UI to display information