Skip to content
Tech Atlas, home
Search
Esc
  • All roadmapsBrowse every learning path
  • ExploreFind a technology area
  • ProjectsGuided projects and builds
  • My AtlasYour learning dashboard
Lesson 2 of 5 · Worked example · 30 min · revision 1

Big-picture EventStorming for a delivery business

Follow a 90-minute big-picture EventStorming session for a same-day courier, from silent chaotic exploration to a clean timeline with hotspots, actors, systems, pivotal events, commands and policies, then type the wall up as a file and lint it.

Contentsand lesson path

What you will learn

  • Run a collaborative domain discovery session (for example EventStorming) and capture events, commands, actors and hotspots.

01. The problem

Hopwell Couriers, the fictional same-day courier from lesson 1, wants to replace its first web application before the busy season. The three developers already disagree about how to split it: one wants a service per database table, another wants to keep everything in one codebase. Neither proposal starts from how the business actually works.

Before anyone draws boxes, you are asked to run a big-picture EventStorming session. EventStorming is a workshop format created by Alberto Brandolini: the people who do the work build the story of the business together on a long wall, using sticky notes. The goal is not a design. It is a shared picture of what happens, in the words of the people involved, with the disagreements marked, so that later decisions about investment (lesson 3) and boundaries (lesson 4) rest on evidence instead of opinion.

02. Before the session: people, space and notation

Invite the people who hold the knowledge and the people who need it. For Hopwell that is ten people: the founder, a dispatcher, two couriers, the hub lead, the support lead, the finance clerk and the three developers. Leaving out the couriers or finance would save a few calendar slots and lose the conflicts that matter most. Book a room with a long free wall, cover six to eight metres of it with a paper roll, keep chairs out of the way so that people stay at the wall, and put a legend where everyone can see it. Hopwell's session ran for 90 minutes, which is enough for a business this size; larger organisations often need most of a day. A remote session works the same way on a shared online whiteboard.

The legend below follows the colour conventions that Brandolini popularised and that the DDD Crew glossary documents. Colours are a convention; what matters is that everyone reads them the same way.

The legend on the wall
Note           Colour                      Example from Hopwell
Domain event   orange                      Parcel collected
Hotspot        neon pink, turned a little  Who pays for damage before the hub?
Actor          small yellow                Dispatcher
System         wide pink                   Route solver (a bought service)
Opportunity    green                       Let shops print their own labels
Command        blue                        Assign route
Policy         lilac                       Whenever a stop fails, replan the route

A domain event is something that happened that a domain expert cares about, written in the past tense: Parcel collected, not Collect parcel. Sessions start with events because everyone can name the things that happen in their own job, while few people can describe the system they would like to have.

03. Step 1: Chaotic exploration

Ask everyone to write events on their own, one per note, and to stick them roughly where they belong in time, from left to right. Do not discuss, correct or group anything yet. Silent parallel writing stops the loudest person from shaping everyone else's picture. Expect duplicates, gaps and notes that are not events at all. After fifteen minutes Hopwell's wall held about ninety notes. A developer typed up a sample exactly as written:

TOML · draft.toml
# The wall after chaotic exploration, typed up exactly as written.
events = [
    "Delivery booked",
    "Delivery updated",
    "Courier",
    "Parcel collected",
    "Parcel Collected",
    "Save parcel to database",
    "Plan routes",
    "Routes planned",
    "Parcel delivered",
    "Payment processed",
    "Invoice sent",
]

04. Step 2: Enforce the timeline

Now the group turns the pile into one story. Walk the wall from left to right and, for each cluster, ask what happens first? Merge duplicates only after checking that they mean the same thing. Parcel collected (a courier picks it up at the shop) and Parcel received at hub (the hub scans it in) looked like duplicates and turned out to be two events, with different people and different ways to fail. The facilitator's main tool here is a question, not a decision: what actually happened?

A short script makes the typed-up wall checkable. It flags the wording problems that facilitators correct most often; it is a rough check, not a grammar engine, and no substitute for the conversation. It reads TOML with tomllib, which is in the standard library from Python 3.11; the run below used Python 3.12.

Python · lint_board.py
"""Lint a typed-up EventStorming wall before anyone draws boundaries on it.

Usage: python lint_board.py board.toml   (a rough check of wording, not grammar)
"""
import sys
import tomllib

VAGUE = {"updated", "changed", "modified", "processed", "handled", "saved",
         "created", "deleted", "managed"}
IRREGULAR = {"sent", "paid", "chosen", "made", "taken", "given", "lost", "found",
             "held", "sold", "built", "done", "seen", "brought", "won", "run"}

with open(sys.argv[1], "rb") as f:
    board = tomllib.load(f)
events = board["events"]
commands = board.get("commands", {})
policies = board.get("policies", {})
hotspots = board.get("hotspots", [])
problems = []

seen = {}  # lower-case wording -> the first event written that way
for event in events:
    words = event.lower().split()
    if " ".join(words) in seen:
        problems.append(f'duplicate: "{event}" repeats "{seen[" ".join(words)]}"')
        continue
    seen[" ".join(words)] = event
    if not any(w.endswith("ed") or w in IRREGULAR for w in words):
        problems.append(f'not past tense: "{event}" (an event, a command or a role?)')
    elif VAGUE & set(words):
        problems.append(f'vague: "{event}" (say what happened, in business words)')

if commands:  # once commands are on the wall, every event needs a cause
    caused = set(board.get("clock", []))
    for name, cmd in commands.items():
        caused.add(cmd["causes"])
        if cmd["causes"] not in events:
            problems.append(f'command "{name}" causes an unknown event')
        if cmd["by"] == "policy" and all(p["then"] != name for p in policies.values()):
            problems.append(f'command "{name}" waits for a policy that is not there')
    for name, pol in policies.items():
        if pol["when"] not in events or pol["then"] not in commands:
            problems.append(f'policy "{name}" links an unknown event or command')
    problems += [f'no cause: what makes "{e}" happen?' for e in seen.values()
                 if e not in caused]
problems += [f'hotspot next to an unknown event: "{h["near"]}"' for h in hotspots
             if h["near"] not in events]

actors = sorted({cmd["by"] for cmd in commands.values()} - {"policy"})
print(f"{len(events)} events, {len(commands)} commands, {len(policies)} policies,"
      f" {len(hotspots)} hotspots")
print("Actors:", ", ".join(actors) or "none yet")
for h in hotspots:
    print(f'Hotspot at {h["near"]}: {h["question"]}')
for problem in problems:
    print("-", problem)
print(f"{len(problems)} problems")
sys.exit(1 if problems else 0)
Terminal
python3 lint_board.py draft.toml
Expected output
11 events, 0 commands, 0 policies, 0 hotspots
Actors: none yet
- vague: "Delivery updated" (say what happened, in business words)
- not past tense: "Courier" (an event, a command or a role?)
- duplicate: "Parcel Collected" repeats "Parcel collected"
- not past tense: "Save parcel to database" (an event, a command or a role?)
- not past tense: "Plan routes" (an event, a command or a role?)
- vague: "Payment processed" (say what happened, in business words)
6 problems

Each finding became a short conversation at the wall:

  • Delivery updated hid two facts. Asked what had changed, the support lead said: either the recipient picked a new window, or the shop cancelled. That became Delivery window chosen and Booking cancelled, two events that trigger different reactions and so need different names.
  • Parcel Collected was a true duplicate of Parcel collected, so one note went.
  • Courier is a role, so it moved to a yellow actor note. Plan routes is an intention, so it became a blue command next to the event Evening routes planned.
  • Save parcel to database describes the current software, not the business, so it left the wall.
  • Payment processed was a misunderstanding: shops pay a monthly invoice, not per parcel. Finance replaced it, and Invoice sent, with Monthly invoices issued.

05. Step 3: Hotspots, people and systems

Disagreements appeared within minutes. A courier said that a parcel left in a safe place was delivered; the support lead said it was not delivered until the recipient had it. The facilitator did not settle it, but wrote the question on a pink hotspot and stuck it next to Parcel delivered. Hotspots capture conflicts, unknowns and pain points without stopping the flow. They are often the most valuable output of the session, because many of them show one word carrying two meanings, the signal from lesson 1. Hopwell's wall ended with four hotspots, which appear in the typed-up board in step 5.

Next the group added the people and systems around the events: small yellow notes for actors such as Courier and Dispatcher, and wide pink notes for systems such as the bought route-solving service, the SMS gateway and the accounting product. Systems matter because each one brings its own model with it; lesson 4 treats the route solver as a context of its own.

06. Step 4: Pivotal events and a walk back

With a consistent timeline, ask which few events change everything that follows. These pivotal events are the few most significant moments in the story, often where responsibility passes to other people and the words change. Hopwell chose four: Booking cutoff passed (shops can no longer change today), Route started (the evening is committed), Parcel delivered (the promise is kept or broken, and money starts) and Month closed (money is settled). Tape on the wall at those points splits the story into phases:

The enforced timeline, as text (|| marks a pivotal event)
Booking (shop assistants, recipients)
  Delivery booked, Delivery window chosen, Booking cancelled
|| Booking cutoff passed                          (13:00 every day)
Planning, collection and hub (dispatchers, couriers, hub staff)
  Evening routes planned, Sort labels printed, Collection list issued,
  Parcel collected, Collection attempt failed, Parcel received at hub,
  Parcel damage recorded, Route assigned to courier, ETA message sent
|| Route started                                  (about 17:30)
Evening delivery (couriers, recipients, dispatchers)
  Alternative path at a stop: Delivery attempt failed, Route replanned,
  Stop order sent to courier, Parcel returned to shop (next day)
|| Parcel delivered                               (the main path at a stop)
  Delivery confirmation sent, Window missed
Money (finance)
  Delivery charge recorded, Delivery fee credited
|| Month closed
  Monthly invoices issued

Then walk the story backwards from the end. Standing at Monthly invoices issued, the finance clerk was asked what must have happened for each invoice line to exist. Her answer, a charge for every delivery and a credit whenever a window was missed, gave two events that nobody had written: Delivery charge recorded and Delivery fee credited. Walking backwards is good at finding gaps like these, because people remember outcomes better than the steps that led to them.

07. Step 5: Commands and policies on the main flow

A big-picture session can stop at step 4. Hopwell had time left, so the group zoomed into the main flow and added two more kinds of note, which belong to the next, more detailed level of EventStorming, called process modelling. A command (blue) is a decision or action that causes an event, placed with the actor who takes it: a Courier issues Confirm delivery, which causes Parcel delivered. A policy (lilac) is a reaction of the form whenever X happens, we do Y: whenever a delivery attempt fails, replan the route. Policies are where business rules hide, so ask about each one: always, or only sometimes? Who decides? What happens if it fails?

After the session a developer typed the cleaned wall into a file, with the commands, policies and hotspots, and ran the same lint on it. This file is the input to the lab in lesson 4.

TOML · board.toml
# Hopwell Couriers: the EventStorming wall, typed up after the session.

# Orange notes, in timeline order.
events = [
    "Delivery booked",
    "Delivery window chosen",
    "Booking cancelled",
    "Booking cutoff passed",
    "Evening routes planned",
    "Sort labels printed",
    "Collection list issued",
    "Parcel collected",
    "Collection attempt failed",
    "Parcel received at hub",
    "Parcel damage recorded",
    "Route assigned to courier",
    "ETA message sent",
    "Route started",
    "Parcel delivered",
    "Delivery confirmation sent",
    "Window missed",
    "Delivery attempt failed",
    "Route replanned",
    "Stop order sent to courier",
    "Parcel returned to shop",
    "Delivery charge recorded",
    "Delivery fee credited",
    "Month closed",
    "Monthly invoices issued",
]

# Events that the clock causes, not a person or a policy.
clock = ["Booking cutoff passed", "Month closed"]

# Blue notes: command = { by = who issues it, causes = the event it causes }.
# by = "policy" means a lilac policy note issues the command.
[commands]
"Book delivery" = { by = "Shop assistant", causes = "Delivery booked" }
"Choose delivery window" = { by = "Recipient", causes = "Delivery window chosen" }
"Cancel booking" = { by = "Shop assistant", causes = "Booking cancelled" }
"Plan evening routes" = { by = "policy", causes = "Evening routes planned" }
"Print sort labels" = { by = "policy", causes = "Sort labels printed" }
"Issue collection list" = { by = "policy", causes = "Collection list issued" }
"Collect parcel" = { by = "Courier", causes = "Parcel collected" }
"Report collection failure" = { by = "Courier", causes = "Collection attempt failed" }
"Receive parcel at hub" = { by = "Hub operator", causes = "Parcel received at hub" }
"Record parcel damage" = { by = "Hub operator", causes = "Parcel damage recorded" }
"Assign route" = { by = "Dispatcher", causes = "Route assigned to courier" }
"Send ETA message" = { by = "policy", causes = "ETA message sent" }
"Start route" = { by = "Courier", causes = "Route started" }
"Confirm delivery" = { by = "Courier", causes = "Parcel delivered" }
"Send delivery confirmation" = { by = "policy", causes = "Delivery confirmation sent" }
"Flag missed window" = { by = "policy", causes = "Window missed" }
"Report failed attempt" = { by = "Courier", causes = "Delivery attempt failed" }
"Replan route" = { by = "policy", causes = "Route replanned" }
"Send stop order to courier" = { by = "policy", causes = "Stop order sent to courier" }
"Return parcel to shop" = { by = "policy", causes = "Parcel returned to shop" }
"Record delivery charge" = { by = "policy", causes = "Delivery charge recorded" }
"Credit delivery fee" = { by = "policy", causes = "Delivery fee credited" }
"Issue monthly invoices" = { by = "policy", causes = "Monthly invoices issued" }

# Lilac notes: whenever <when> happens, issue the command <then>.
[policies."Plan at the cutoff"]
when = "Booking cutoff passed"
then = "Plan evening routes"

[policies."Collect what was booked"]
when = "Booking cutoff passed"
then = "Issue collection list"

[policies."Label parcels for their routes"]
when = "Evening routes planned"
then = "Print sort labels"

[policies."Tell recipients when to expect us"]
when = "Route assigned to courier"
then = "Send ETA message"

[policies."Confirm each delivery"]
when = "Parcel delivered"
then = "Send delivery confirmation"

[policies."Check the window promise"]
when = "Parcel delivered"
then = "Flag missed window"

[policies."Replan after a failed stop"]
when = "Delivery attempt failed"
then = "Replan route"

[policies."Keep couriers' stops current"]
when = "Route replanned"
then = "Send stop order to courier"

[policies."Second failure goes back to the shop"]
when = "Delivery attempt failed"
then = "Return parcel to shop"

[policies."Charge each delivery"]
when = "Parcel delivered"
then = "Record delivery charge"

[policies."Missed window means free delivery"]
when = "Window missed"
then = "Credit delivery fee"

[policies."Invoice at month end"]
when = "Month closed"
then = "Issue monthly invoices"

# Pink notes: questions the room could not settle, next to the event they concern.
[[hotspots]]
near = "Parcel delivered"
question = "Does a parcel left in a safe place count as delivered?"

[[hotspots]]
near = "Window missed"
question = "Who decides that a window was missed?"

[[hotspots]]
near = "Parcel damage recorded"
question = "Who pays when a parcel is damaged before the hub?"

[[hotspots]]
near = "Route replanned"
question = "How late can we replan and still keep couriers' trust?"
Terminal
python3 lint_board.py board.toml
Expected output
25 events, 23 commands, 12 policies, 4 hotspots
Actors: Courier, Dispatcher, Hub operator, Recipient, Shop assistant
Hotspot at Parcel delivered: Does a parcel left in a safe place count as delivered?
Hotspot at Window missed: Who decides that a window was missed?
Hotspot at Parcel damage recorded: Who pays when a parcel is damaged before the hub?
Hotspot at Route replanned: How late can we replan and still keep couriers' trust?
0 problems

The lint finds no problems, and the summary lists the five actors and the four open questions. Every event now has a cause: a person's command, a policy, or the clock (Booking cutoff passed at 13:00 and Month closed at the end of each month). The hotspots go to named owners with a date; a board with open hotspots is normal and honest.

08. Check your understanding

Practice check · 3 questions

Running the session

Each question has one best answer.

Q1. While the timeline is being enforced, the finance clerk's note reads *Shop account updated*. What should the facilitator do?
Q2. The support lead says: *if a recipient complains twice in one month, we stop offering them the safe-place option.* How do you capture this on the wall?
Q3. Hopwell's CTO proposes a session with only the three developers and himself, because they know the system better than anyone. What is the main risk for a big-picture session?
Practice only: not graded, not saved, not evidence.

09. Apply it

Run the skill's practice: a 90-minute session on a clinic appointment service, with peers playing receptionist, doctor, patient and billing clerk if you cannot reach real experts. Follow steps 1 to 5. Then type the wall into a clinic.toml with the same layout as board.toml, and run lint_board.py on it until it reports 0 problems. Keep every hotspot you could not answer; lessons 3 and 4 build on them.

10. Review prompt

Without looking back:

  1. Why does a session start with events rather than commands, screens or tables?
  2. Two notes look like duplicates. What do you check before merging them?
  3. What does a hotspot capture, and why does the facilitator not settle it on the spot?
  4. What makes an event pivotal, and why are pivotal events useful later?
  5. What is the difference between a command and a policy? Give one Hopwell example of each.

References

Your progress

Reading state

Sign in to save that you finished reading this lesson.

Sign in to mark reading complete

Prove this skill

6 questions · about 5 minutes · scored automatically. Marking a lesson as read never demonstrates a skill.
Take the skill check