The Pictographic Language
Domain Storytelling combines a pictographic language with a workshop format. While each has value on its own, it is their combination that makes Domain Storytelling work so well. We will start with the graphical notation here. To record domain stories visually, you need a set of building blocks (i.e., symbols 1 ) and rules for combining them. The symbols consist of icons, arrows, and text.
1 . We use the term symbol here with its linguistic meaning—a language is written down with symbols. The term icon will be used with the meaning of pictogram or image.
Actors
Domain stories are told from an actor ’s perspective. An actor can be a person (in Figure 2.1 , for example, “cashier”), a group of people (“moviegoers”), or a software system (“ticket booking system”). We use different icons to represent those different kinds of actors. What actors have in common is that they play an active role in the domain story.
Figure 2.1 Typical actors
The icons are all labeled with a term from the domain language. Note that we usually label actors with their role or function (e.g., “cashier”) rather than a person’s name (e.g., not “Matthew”). However, in some situations you may find it useful to make an exception to that rule and use concrete persons or personas [ Cooper 1999 ] as actors (see also Chapter 6 , “ The Workshop Format ”).
Work Objects
Actors create, work with, and exchange work objects (see Figure 2.2 ) such as documents , physical things , and digital objects . They also exchange information about work objects. The pictographic language does not distinguish between work objects and information. Hence, an icon can represent all of the following:
-
The actual work object itself, e.g., a movie ticket printed on a slip of paper
-
A virtual representation of the work object, e.g., a digital movie ticket created by a software system
-
The medium through which information about the work object is exchanged, e.g., a phone call to buy a movie ticket
Figure 2.2 Typical work objects. Note: “movie ticket” and “price” each appear twice with different icons
Like actors, the work objects are labeled with a term from the domain language (like “showtimes,” “movie ticket,” etc., in Figure 2.2 ). Note that a work object can have different icons within the same domain story if the medium changes. For example, a moviegoer could receive their movie ticket via email and print it at home—the same ticket is represented with two different icons.
Icons for Actors and Work Objects
For the examples in this book, we use icon sets made up of Google’s Material icons [ MaterialIcons Website ]. An icon set should be adapted to the domain that you want to model. For example, if you work in logistics, where shipping containers are an important work object, you should use a container icon in your domain stories. The same is true for actors—ships, cars, smartphones, etc., can all be actors, depending on your domain. Figure 2.3 shows the icon set for Metropolis.
Figure 2.3 Icons from the cinema domain
You will see another example for an icon set when we introduce a second case study from a different domain in Part II (see Chapter 8 ,“ Case Study —Alphorn Auto Leasing Inc.”).
The icons should help with creating a clean visual. When you put together your own set of icons, keep the following in mind:
-
Make sure the icons are distinct enough and simple.
-
Using too many different icons will water down your pictographic language.
-
The icons should convey meaning and make the domain story more tangible.
-
Depending on the context, the concepts of a domain can be modeled as actors or work objects. At Metropolis, for example, a moviegoer’s smartphone could serve as a wallet for digital tickets. Then the smartphone is modeled as a work object. Also, the new Metropolis app on a user’s smartphone could notify moviegoers about cancellations. In that story, the smartphone is modeled as an actor.
Activities
The actors’ activities (see Figure 2.4 ) are shown as arrows and labeled with verbs from the domain language (e.g., “offers,” “buys,” “recommends”). Note: Actors and work objects are nouns, and activities are verbs.
Figure 2.4 Typical activities
Sequence Numbers
To tell a story, you need more than one sentence. Since stories are told one sentence after the other, the sentences can be brought into an order by numbering them. We usually number the sentences by adding a sequence number (see Figure 2.5 ) to the origin of the arrow that represents an activity (the predicate of a sentence).
Figure 2.5 Typical sequence numbers
Sequence numbers express time within domain stories.
In most cases, we number the activities consecutively, which means we use every number exactly once. Sometimes it makes sense to express that activities happen concurrently. If that is the case, we label the parallel activities with the same number. We recommend using this special case sparingly because it makes the sentences harder to read and weakens the story. If possible, agree on an exemplary order and use parallel activities only if it is really important for the story.
An exception to this rule is when people work together on a single work object. Then both arrows carry the same number.
We number a sentence while modeling it (as opposed to numbering all sentences at the end of modeling). This makes it easier to keep track of the story. However, the domain experts do not always get the sequence right the first time. Sometimes, sentences need to be inserted afterward, or the sequence has to be changed. Then, the sentences need to be renumbered.
Annotations
The pictographic sentences are complemented by textual annotations (see Figure 2.6 ). Where necessary, we annotate information about variations (other cases, optional activities, possible errors). Also, it can be useful to annotate the goal of an activity (see also Chapter 6 , “ The Workshop Format ”). We use annotations to explain terms from the domain language and to document assumptions or anything else that is noteworthy. Annotations usually concern one of the following:
-
An actor, work object, or activity
-
A whole sentence or several sentences
-
The domain story as a whole
Figure 2.6 Typical annotations
Annotations that concern the whole domain story are particularly important for working with scenarios (see Chapter 3 , “ Scenario-Based Modeling ”). They will help you to set the scene: What is the story about? Why is it relevant? Which events trigger the story? Which constraints determine the plot of the story? What distinguishes this specific story from other possible stories?
If you look at the Metropolis 2 (see Figure 1.10 ) example again, you will recognize that app developer Anna and movie theater manager Matthew made the following assumptions about the story:
-
A moviegoer buys a ticket at the box office.
-
The moviegoer does not have a subscription.
-
The story is about the “happy path,” meaning the cashier suggests acceptable seats and the moviegoer buys and receives their ticket.
Also, sentence 4 in Metropolis 2 (see Figure 1.10 ) (“Cashier suggests available seats to moviegoer”) has been annotated with “and mentions language.” This is an example of an annotation that concerns a specific activity.
Annotations about the domain story as a whole are usually put on the margins or below the story. Annotations about a detail of the story are usually put right next to that particular element. When this gets too messy (which often happens in an analog setting), these detailed annotations are also put beside or below the story, using the according sequence number for reference. The next section shows an example for annotations on the margins (see Figure 2.8 ).
Modeling Canvas
To draw a domain story, you will need some kind of modeling canvas (see Figure 2.7 and Figure 2.8 ) to draw it onto. It doesn’t have to be an actual canvas but can be a piece of paper, a whiteboard, etc. Also, it could be analog or digital. (We will go deeper into that in Chapter 5 , “ Modeling Tools .”)
Figure 2.7 Typical layout of the modeling canvas
Figure 2.8 Example of a modeling canvas layout on a whiteboard
A typical first step is to give the domain story a name and to put it on the canvas. 2 This will set the frame for the story told. The name may be revised and refined as the story evolves.
2 . As you have seen in the domain stories Metropolis 1 (see Figure 1.9 ) and 2 (see Figure 1.10 ), in this book we write the name below the story as a caption to the respective figure. In a modeling workshop, it is more common to write it at the top of the story.
A good initial name expresses what’s happening, using words from the domain language. Parts that may be added later are the company, a number, the case, the scope. (More on that in later chapters.)
Groups
A group (see Figure 2.9 ) is represented as an outline that clusters parts of a story that somehow belong together. The group can take any form, for example a rectangle, a circle, or a free-form shape. To describe the meaning of a group, label it accordingly. Here are some examples of what can be expressed by groups:
-
Activities that are repeated
-
Activities that are optional
-
Parts of the story taking place in different locations
-
Organizational boundaries
-
Subdomains
Figure 2.9 A typical group
For an example with groups, see Figure 2.10 . It shows an enriched version of the high-level overview of the moviegoer’s cinema experience. It now contains four groups that are used here to represent the different subdomains of the cinema domain. As this is a further development of Metropolis 1 (see Figure 1.9 ), we refer to this domain story as “Metropolis 1a” in the rest of the book.
Figure 2.10 Metropolis 1a: Going to the movies— COARSE-GRAINED —grouped by subdomain
Colors
Many domain stories are black and white only. Sometimes it makes sense to add a little more color (see Figure 2.11 ). Color can be used in the following ways:
-
To emphasize some elements
-
To visualize differences
-
As an alternative to groups
Figure 2.11 Typical use of color
You saw the use of gray and black as colors in Chapter 1 when we developed Metropolis 1 step-by-step (see Figures 1.1 – 1.9 ). There we used it to emphasize what has changed between two domain stories.
Now, app developer Anna wants to know from movie theater manager Matthew how legal requirements apply to the cinema. They use visual highlighting 3 to indicate which parts of a domain story have to follow which regulations. The result is Metropolis 1b (see Figure 2.12 ), which shows the requirements to food safety and fire protection.
Figure 2.12 Metropolis 1b: Going to the movies— COARSE-GRAINED —color shows legal requirements
Later in this book, we will use colors to visualize differences between versions of the same business process (see Chapter 13 , “ Supporting Organizational Change ,” and Chapter 14 , “ Deciding Make or Buy and Choosing Off-the-Shelf Software ”).
The choice of modeling tool determines what colors are available. In a black-and-white situation (like in a printed book), using grayscale may be the right choice.
When using different colors in a domain story, it can help to add a legend noting the meaning of each color. Figure 2.12 shows an example of a legend on the left.
3 . For production reasons, while the e-book edition of this book contains colors, the print edition uses grayscale instead.
No Conditionals
Besides showing the elements of the pictographic language, we also want to point out what is not part of the pictographic language. There are no symbols for conditionals, variations, or alternatives. They are intentionally left out. This is a big difference compared to many other modeling approaches for business processes. For example, Business Process Model and Notation (BPMN) has gateways (see Figure 2.13 ).
Figure 2.13 The classical ( Not -Domain-Storytelling) approach: modeling different cases in one diagram. (Here: A control flow with four gateways, modeled in BPMN ).
We have observed that if a notation offers conditionals to model alternatives, people most likely will use them. 4 With Domain Storytelling, you model just the most important alternatives—each one as an individual domain story, told from beginning to end. We will elaborate on that in Chapter 3 , “ Scenario-Based Modeling .”
Putting It All Together
Domain stories visualize who (actor) does what (activity) with what (work objects) with whom (other actors).
The actors are the subjects of the sentences. In a Domain Storytelling workshop, representatives of the actors will be present, and they will identify with the stick figures in the domain story. Hence, the actors should be easy to spot. We recommend drawing them larger than the work objects.
4 . To be fair, BPMN and similar methods do not force you to use gateways. In fact, some authors consider it a best practice that the first version of a model should focus on one case only. See, for example, Real-Life BPMN [ Freund/Rücker 2019 ].
Domain stories evolve around the actors.
Every actor appears only once in the domain story. But for every activity, we draw a separate work object (even if the same work object already exists in a previous sentence). For example, look again at domain story Metropolis 1a (see Figure 2.10 ). The moviegoer appears only once, although that actor initiates several activities. The ticket, on the other hand, appears several times: It is bought, shown to the usher, and checked.
Actors appear once per domain story; work objects can appear several times.
If you follow that rule, arranging work objects and arrows becomes a lot easier. There is another good reason for this. As the story evolves, a work object may change its status or representation. To illustrate that, let’s look at a cutout of Metropolis 2 (see Figure 1.10 ) in Figure 2.14 .
Figure 2.14 A work object changes its representation
Here, the “available seats” are modeled as a seat icon in sentence 3, when the cashier searches for them. In sentence 4, where the cashier suggests seats to the moviegoer, they are modeled as a speech bubble.
A Grammar for Domain Stories
Activities connect actors and work objects to form sentences . Every sentence starts with an actor who initiates an activity: who (actor) does what (activity) with what (work objects) with whom (other actors). The basic syntax is: subject – predicate – object . 5 More complex syntax is allowed as well. Figure 2.15 shows a list of grammatically correct sentences for a domain story.
5 . The syntax fits well within English grammar. Of course, there are languages that use differently structured sentences (e.g., subject – object – predicate in Farsi). If you tell a domain story in such a language, there will be a difference between the spoken language and its depiction in the pictographic language. See Chapter 9 , “ Learning Domain Language ,” for examples.
Figure 2.15 Possible sentence structures
The sentences in Figure 2.15 can be read as follows:
-
Actor A works on work object w (creates it, buys it, processes it, looks something up in it…).
-
Actor A works on work object w to edit work object v .
-
Actor A hands work object w over to actor B , or A exchanges information about w with B . Often, a preposition (e.g., to , with , in ) is a fitting label for the second arrow.
-
This is the same as sentence 3 but with several recipients.
-
The two actors A and B collaborate on w (sign it, agree on it…).
Different Styles of Drawing
In sentences 2 to 5 in Figure 2.15 , we use two arrows even though the actor performs only one activity. This little discrepancy is due to the use of a modeling tool. If you record your domain story by hand, you can draw one arrow from actor to actor and then place the work object on top of the arrow (see Figure 2.16 ).
Figure 2.16 Different style, same meaning: hand-drawn vs. tool-drawn
Another difference that you might spot is the placement of the sequence number. In the hand-drawn version, it is positioned at the beginning of the activity’s arrow. In the tool-drawn version, it is placed on top of the activity’s label.
The grammar should help with translating domain knowledge into pictographic language. But the expressiveness of a domain story is more important than the correctness of the grammar.
Keep in mind that each sentence should make sense if you read it out loud.
We consider it good practice to speak during modeling—“modeling out loud,” as the inventor of Domain-Driven Design, Eric Evans, calls it:
The detachment of speech from other forms of communication is a particularly great loss because we humans have a genius for spoken language. […] One of the best ways to refine a model is to explore with speech, trying out loud various constructs from possible model variations. Rough edges are easy to hear. [ Evans 2004 ]
To summarize, domain stories should be modeled on the spoken language (with the limitations given earlier concerning grammatical differences between natural languages and the pictographic language).
Good Language Style
In our experience, the pictographic language is more about expressiveness than about adherence to strict rules. However, we think it is useful to show you examples of what we consider good style and what we consider poor style. We have added reasons why you should consider our suggestions—at least until you have enough experience to make your own conscious choices.
Give Every Sentence Its Own Work Objects
If you look again at the domain stories Metropolis 1 (see Figure 1.9 ) and 2 (see Figure 1.10 ), you will see that work objects like “ticket” and “seating plan” appear several times. Every activity that relates to a ticket has its own work object, depicting a ticket (rather than there being just one “ticket” work object for the whole domain story). There are good reasons for that:
-
First, you might want to represent a work object with different icons (e.g., the ticket could be issued in the form of a QR code and printed later).
-
Second, having several arrows going in and out of work objects reduces the readability of the story.
-
Third, when every sentence has its own work objects, they can be clustered into groups without overlapping.
Hence, we favor giving every sentence its own work objects over reusing work objects.
Make Work Objects Explicit
We have said that activities represent the verbs in the pictographic language and that work objects are, well, the objects. Sentences can have more than one object in natural languages, and that is also true for the pictographic language (see, for example, the second sentence in Figure 2.15 ).
However, we noticed that Domain Storytelling novices tend to stick to the basic sentence structure of actor – activity – work object . If there is a second object involved, they often make it an implicit part of the activity. Take a look at the example in Figure 2.17 .
Figure 2.17 Don’t: model work object as part of activity
The activity “searches for available seats in” contains the word “seats.” For a cinema, “seat” is an important piece of the domain language: Seats are searched for, reserved, sold, and so on. Hence, it makes sense to make this explicit by modeling it as a work object, as shown in Figure 2.18 .
Figure 2.18 Do: model work object separate from activity
Sometimes, work objects do not hide in activities but in other work objects, like in Figure 2.19 . That too is something you should avoid.
Figure 2.19 Don’t: model work object as part of another work object
In Part II of this book, you will learn to use Domain Storytelling for specific purposes, such as finding boundaries within a domain or deriving an implementable model from domain stories. These practices rely on a proper mapping of domain concepts to the pictographic language.
Provide a Label for Every Building Block
We have recommended that you label all actors, activities, work objects, and groups with terms from the domain language. It is tempting to omit some obvious or unimportant terms to speed up modeling. But beware, what is obvious to you is not necessarily obvious to other people. It is easier to spot different interpretations of terms if you put them in writing. Also, what seems obvious now may be confusing in a week or a month. If you revisit your domain stories later, you will be thankful if the whole story is spelled out and not just implied. Therefore, we prefer readability over brevity.
Use Different Icons for Actors and Work Objects
Even though a concise pictographic language has its advantages (i.e., fewer icons and meanings to memorize), you should not go as far as to use the same icon for actors and work objects. This would be confusing and affect readability.
Avoid “Loopbacks”
When it comes to modeling a software system’s activities, modelers with a programming background will sometimes apply the pattern shown in Figure 2.20 .
Figure 2.20 Don’t: model function call
However, the arrows in the pictographic language do not represent a function, method, or procedure call. Hence, there is no need for this “loopback” pattern. A system that calculates a price can simply be modeled like in Figure 2.21 .
Figure 2.21 Do: model activity
Avoid the “Request and Response” Pattern
Software developers seem to have a tendency to model the interaction between a software system and a user as something technical—a request that is fulfilled by the system’s response. For example, a web app for buying movie tickets modeled in that style would look something like Figure 2.22 .
Figure 2.22 Don’t: model the technical details of how a user interacts with a system
There are several reasons why we do not like this style so much:
-
It does not tell a compelling story. It has little potential to spark interesting conversations and insights about the domain.
-
If the goal of the model is to document the implementation of the system, then there are better ways of achieving this, e.g., a Unified Modeling Language (UML) sequence diagram.
-
If the goal of the model is to design the user interface, then there are better means to do that (e.g., mock-ups and prototypes).
-
Since the model is specific to the technical implementation of the software system, it will be outdated if the implementation changes.
Instead, use Domain Storytelling to model intent: What is the goal of the user? How does the software system help them to reach that goal? Each activity should push the story forward. (See Figure 2.23 .)
Figure 2.23 Do: model what the user wants to achieve
Now that you know the building blocks of the pictographic language, let’s move on to the special Domain Storytelling way of modeling different cases.