event-sourcing-demo

System Behavior (Use Cases)

Use Case Diagram

Use Case Diagram

Primary Actors:

Use Cases:

Secondary Actors:

Use Case Narrative: Write Event

Use Case Name

Write Event

Primary Actor

Author

Goal

Record an event in the event stream. Optionally, the event may be linked to other events. For example, an event recording a correction to an address is linked to the address-create event.

Preconditions

Main Succes Scenario

  1. The author submits an event
  2. The system generates a universally-unique event ID and associates this event ID to the event
  3. The system provides success confirmation and the event ID to the author.

Extensions (Alternative Flows)

Postconditions

  1. The event is recorded
  2. The event is returned by searches that match the event data (e.g., by event ID)
  3. If and only if the event matches a pattern that should generate an email, an appropriate email is sent to the right e-mail address.