Skip to main content

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:

  1. In June 2017, Sheba gave birth to kittens: Moo, Ricky Bobby, Broncho, Kylo, and Orange Kitty
  2. Orange Kitty became deceased
  3. On Dec 12, 2018, Moo was neutered and left ear tipped at Patient Paws Mobile
  4. Moo was later documented with a black and white tuxedo coat pattern

Health Emergency Flow

Example from Lime Factory:

  1. On June 15, 2021, Lucky showed symptoms of Upper Respiratory Infection (URI)
  2. On June 19, 2021, Lucky visited ER Vet
  3. On July 21, 2021, Lucky visited ER Vet again, severely dehydrated, anemic, low proteins, possible FIP
  4. 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:

  1. Commands are sent from the user interface
  2. Command handlers validate and process commands
  3. Domain logic applies business rules
  4. Events are generated to record state changes
  5. Events are stored in the event store
  6. Projections create read models from events
  7. Read models are used by the UI to display information