Business Process Models
Business process models demonstrate a set of activities that together achieve a business objective. Business process models can be in a number of forms—for example, UML activity diagrams, BPMN diagrams, data flow diagrams, or flowcharts. What you use or call them doesn’t matter. It’s what you do with them that matters .
If you are familiar with process models, skip ahead. If not, take a look at the simple process model depicted in Figure 22.1 . The process model shows the business activities—each one a recognizable chunk of functionality—and the sequence in which they are organized to achieve the goal .
Figure 22.1
An example of a process model from DC Comics
Process models are a tool to help you find requirements. Once you have drawn your process model and agreed on it with the customers and stakeholders, you can readily derive your requirements or stories from it. The activities on the model provide a suitable amount of functionality to qualify as a story. Or if you are writing detailed requirements, you can extract them from the relevant activities on the process model .
As Figure 22.2 shows, you can use process models in various situations. They are useful for prototyping when you want to show the functionality of a candidate solution. They are used in the Trawling activity when you might want to model the current state of the work under study or you’re proposing some future process to your customer. Solution designers might also use process models to illustrate how their design achieves its purpose .
Figure 22.2
Process models are used in several of the requirements discovery activities.
Process models are a tool to help you discover the right requirements and/or stories. And as we mentioned above, you can derive your requirements and stories directly from the process model. In some cases, with willing developers, you might be able to develop the needed software directly from the process model .
Our approach to process models for requirements work is an informal one. We have no interest here in formal process models using elaborate notation. Process models for the business analyst are quick sketches aimed at eliciting information. Let’s start by looking at their notation .
Notation
Before we go too far, we should warn you not to get involved in notation wars. Sometimes people get very passionate about issues such as whether and how to show data, whether a process should be a circle or a rectangle or a rectangle with rounded corners, how conditions should be shown, and so on. You’re a business analyst; your process models are for you to communicate with . As long as your customer and other stakeholders understand your diagrams in the same way, you’re using all the notation you need.
However, it is useful to know that there are two popular notations: Unified Modeling Language (UML) and Business Process Model and Notation (BPMN). You can use either to document, or invent, a business process. BPMN has the most comprehensive modeling vocabulary, but you should only use a minimal subset—just as much as you need to communicate with the stakeholders. BPMN and UML, when used in a cut-down form for trawling purposes, are not that dissimilar. Use whatever subset of either notation works for you and your stakeholders.
You should be sketching your models, so hand-drawn diagrams are all that are needed. Please don’t spend time and money on one of the dedicated apps for drawing these things. You need nothing more than a pencil and paper, or a whiteboard, virtual or real. We propose that you draw the models as you’re talking to your customer, your team, and other stakeholders.
Activity Diagrams
This is a quick introduction to basic activity diagrams.
Figure 22.3 shows all that you need, probably more than you need, in a UML activity diagram.
Figure 22.3
The basic notation of the UML activity diagram
In Figure 22.4 , note the initial icon called the “start event.” This is the happening that triggers the process—it is in fact a business event. This is convenient, as most of the time you draw a process model of a business use case, or the response to one business event.
You probably won’t use much of the notation shown in Figures 22.3 and 22.4 . We want you to know that the notation is there, but we will use a subset for our examples.
Figure 22.4
A subset of the BPMN model
Data Flow Diagrams
Data flow diagrams are the simplest and most natural and minimal notation to show business processes.
The data flow model differs from other process models in that it shows the data that is input and output from each activity. Including the input and output from a process guides the person creating the diagram into a more “natural” functional partitioning. The activities are natural in that they are whatever is required to transform one piece of known data into another.
The example shown in Figure 22.5 repeats the airline check-in process we discussed in Chapter 20 , Scenarios .
Figure 22.5
A data flow model of the airline check-in process that was shown as a scenario in Chapter 20
The notation of the data flow model is this: Around the periphery are the adjacent systems that you first saw in the context model when we were discussing scope in Chapter 5 . They are exactly the same when used here. The activities are shown as circles. The arrows represent flows of data between the activities; the name attached to each data flow indicates the contents of the flow.
The other notation is the parallel lines enclosing stored data. Stored data can be either a complete database or individual entities/classes from your data models. For reference, the notation is shown in Figure 22.6 .
Figure 22.6
An overview of the data flow notation
We encourage you to draw data flow models one business event at a time. However, when there is a need to show a wider business area, perhaps the entire problem space, the data flow model works very well. You would possibly want to do this when looking at the How-Now or “As is” view of the work in order to establish the starting point and help define the scope.
Figure 22.7 shows an example of looking at the wider scope.
Figure 22.7
A data flow model illustrating the full extent of a problem space
Data flow models are very business friendly, and we believe that the addition of recognizable data flows helps stakeholders have a rapport with your models of their work.
Business Events and BUCs
Business events are an important idea, and we have spent some time discussing them. The advantage of combining business events and process modeling is that the business event gives you well-defined start and end points for your models.
In Chapter 20 we looked at scenarios, and you saw the example of an airline passenger and his bags being checked onto a flight. Please refer back to that scenario if you wish and compare it with a process model of the same business use case in Figure 22.5 . Consider your stakeholders and consider what you need to communicate. In some cases, a scenario would be preferable, and in others, a diagram will best convey the needed information. A scenario can be more detailed, but in some cases, the higher level of abstraction that a diagram provides is preferable. We leave it to you to experiment and decide which form of representation is most appropriate for the situation.
Figure 22.8 shows the business use case where the passenger checks onto a flight. It is triggered by the passenger arriving at the desk, bringing with him the data needed to check in. It ends when the outcome of the BUC has been achieved. That is, the passenger and his bags are successfully checked onto the flight. It means that all the data has been processed and the needed parts of the data have been stored, the outputs—boarding pass, bag tags—have been produced, and there is nothing left for this BUC to do.
Figure 22.8
An activity diagram showing a passenger checking in for a flight. This is the equivalent of the scenario and the data flow model shown previously.
In Figure 22.8 , note the swimlanes , the dotted lines that divide the work between the participants. Swimlanes are optional, and they are a double-edged sword. They provide a clear explanation of who is doing what in the current implementation—the How-Now view. However, it is highly likely that different processors will be used in a future solution; in which case the swimlanes can be misleading. And they must never be taken as a constraint. They are there to explain the current work and must not be considered unchangeable. We suggest that when you are modeling the essential view—What-Now and Future What—you omit swimlanes.
The activity diagram shows parallel processing. For example, the Check Bags and Print Boarding Pass activities can be performed at the same time. The black bar shows the point at which processing can be split and become parallel. This is called a fork node .
The activity diagram also shows a join node —the second black bar on Figure 22.8 . This symbol means that all processing must reach this point before proceeding. In the case of the airline check-in, the entire process cannot end until both the bag tags and the boarding pass have been printed.
Diamonds can be used to denote decisions, just as they are in traditional flowcharts. We tend to leave them out where the conditions are obvious or can be shown by attaching guard conditions (the words in brackets at the exit of an activity). When using activity diagrams during requirements work, simplicity is more useful than correct and complete use of the notation.
When to Use Process Models
The short answer is whenever you like. A better answer is that whenever you are discussing a business process, you should consider sketching a process model.
When You Are Getting Started
Suppose your customer sells a product that is quite specialized. Your client’s customers make customized orders. You could start with a very simple process model, as shown in Figure 22.9 .
Figure 22.9
This was sketched early in the project as a high-level model to illustrate the business flow.
The activities in Figure 22.9 are high level—they simply group the detailed processing into useful chunks. A high-level model such as this is used to start the discussion with your stakeholders. The first activity, Customize the Order , is a human activity where Kevin and the customer decide on the customization of the product. The activity is annotated to indicate that it is a human activity. This is a complicated activity and will need some trawling to see if it could be improved. Fulfill the Order and Shipping are both to be done by ready-made components. This is flagged by the addition of the “out of the box” symbol. Finally, Hesta in accounting does the billing manually.
The two activities to be done by the ready-mades do not have to be specified in detail (you can think of them as black boxes), apart from any configuration and the data interfaces into and out of them.
This model would be used by the requirements discoverer to get an agreement from the client that this is the correct response to the business event Customer wants to place an order , and to highlight the areas where further investigation is needed.
When You Are Prototyping with Models
Prototyping , as we use the term for requirements discovery, is building a number of candidate solutions. These are probed and explored to determine if they solve the right business problem. We discussed prototyping in earlier chapters.
Let us say that your client is a fashion retailer and wants to have an innovative way for her customers to shop, one that will attract younger, more trendy shoppers. Now let’s say that you and your team brainstorm candidate solutions. So that you can discuss them and show them to your client, you sketch process models such as the one shown in Figure 22.10 as part of your prototyping sessions.
Figure 22.10
A sketched candidate prototype using a process model
You have annotated your process model with some figurative elements to make it potentially more attractive and understandable to your client. You could use this model to explain to your client that the clothing displayed in the store is currently grouped according to designer, as it is in many large department stores. As a result, a shopper in one designer’s area would not know what was available in other areas. This solution allows shoppers to be made aware if there are alternatives to the item they have picked off the rack. Perhaps the idea of a robot delivering clothing might be a little bit startling to a shopper, but then, it might be fun to have a friendly robot following you around the store carrying the clothing you have selected so far.
You would discuss and argue these things with your team and your client, changing the process model as needed, and probing it to ensure that this candidate is viable. Keep in mind that this process model is a prototype. If it doesn’t work out, you discard it and go on to the next one.
When You Are Doing How-Now Modeling
One of our clients, a medical insurance organization, realized it had grown so quickly that it lost control of its internal business processes. Members of each department were more or less making up their processes as they went along and building ad hoc software to suit themselves. This resulted in very little coordination between different departments, and soon enough, management realized the business was inefficient due to its tangled and overlapping processes.
We started by having the people who worked in different departments sketch process models of some of their most important processes. These models were depictions of what existed at the moment—the How-Now view.
When they brought these models together, it became obvious that there was a lot of redundancy due to different departments duplicating some—quite a lot, actually—of their business processes. They used the models to put together a What-Now view—the essence of the business. The duplication and overlap were eliminated, and data that could be shared was centralized. The resultant set of essential process models was then used as the basis for further improving and then reimplementing their systems.
Review
Process models are a trawling tool that are at their best when proposing, documenting, or demonstrating a business process. Much of your analytical work has to do with business processes: what has to be done when a student wants to register at a university; what activities are needed when a cargo agent needs to book an air shipment; and so on.
A process model gives you a graphical way to show a business process to your stakeholders. The diagramming notation is not so complex as to be daunting to those unfamiliar with it. Which is, by the way, why we have been urging you not to become involved with the rich language of BPMN and UML and to stick to a basic subset that uses only a few symbols.
We spoke about process models back when we were discussing prototyping. A process model can be a great way to demonstrate a proposal. After all, your prototypes are candidate solutions, which are almost always a business process.
Process models also play a part in process improvement. By building a graphical model of an existing process, it becomes easier for your stakeholders to locate the chokepoints, redundant activities, and inconsistencies.
The ability to see the process laid out in graphical form also makes it easier to see the essence. For each activity on a model, you ask why. Why is this process here? What does it contribute? Is it part of an essential policy, or is it there for some technological or organizational reason?
Finally, there is communication. Once your stakeholders become familiar with, or at least unafraid of, the diagramming notation, you can demonstrate and communicate more fluidly. Showing your client an essential process model and using it to explain a proposed new way of working brings clarity to the conversation. Sure, you need words to fill in the details, but the model provides the road map for your communication.
Resources
BPMN Quick and Easy: Using Method and Style. Process Mapping Guidelines and Examples Using the Business Process Modeling Standard by Bruce Silver (Cody-Cassidy Press, 2017). As the (rather long) title suggests, this is an entry to BPMN, and also provides style rules for building your models.
Learning UML 2.0: A Pragmatic Introduction to UML by Russell Miles and Kim Hamilton (O’Reilly, 2006). This demonstrates UML and describes how to draw UML models. The activity diagram is the one you would use most. The book also discusses how to use UML as a prototyping tool or during the Trawling activity.
There are also endless online resources for UML and BPMN.