Business Events and Business Use Cases

Business events are events that are significant to the piece of your customer’s business that you are now studying. Business events are also significant to requirements discovery because whenever a business event happens, the business must respond to it .

The response to a business event is a business use case or BUC . The BUC is a collection of the activities and data needed to satisfy the instigator of the business event. If the business event is a customer wanting to listen to a piece of music on a streaming service, then the response—the BUC—is to locate the music and stream it along with some recommendations for future listening .

You are interested in business use cases because when you are building prototypes, trawling, discovering the requirements, specifying, and implementing, BUCs are the most convenient and consistent unit of functionality .

Business Events

You met business events back in Chapter 7 , Business Events , when we were discussing the Project Blastoff; however, they are so important to what you are doing that it will be helpful to have a short recap here.

As Figure 17.1 illustrates, most business events are triggered in the outside world. That’s where your business customers, other computer systems, and other organizations trigger business events. Because they start outside the problem space, we call these external events .

Images

Figure 17.1

An example of a business event. The business event happens the moment the plane reaches a point where the pilot should request permission to land. The pilot then radios Air Traffic Control for permission. The response to this incoming request is that the controller arranges a landing slot and radios the outgoing data back to the pilot. (Note that this is very much a simplification of what actually happens with ATC.)

Another type of business event happens because of the passage of time. It’s called a time-triggered event , and it happens when a certain date is reached, a certain time of day is reached, or a certain amount of time has elapsed since something else happened. Figure 17.2 shows an example of a time-triggered business event and its BUC.

Images

Figure 17.2

A time-triggered business event. This one is initiated when a predetermined date is reached. In this case, this organization sends customers their monthly credit card statements on the 15th of every month. It does not matter whether the statements are sent via mail, email, or a link. The response to the event Monthly statement due date has arrived is to retrieve the customers’ transactions for the month and collect them into statements, which are sent to the customers.

Conditional business events , the third type of event, happen when a condition is met. For example, most countries have a law that requires banks to report any personal deposits exceeding a specified amount. Let’s say the amount is $10,000, and one day Ron Slick deposits $50,000 into his account. Ron might have been up to no good, and the tax people would like to know about it. Because Ron’s deposit exceeded the $10,000 reporting condition, it triggers a conditional business event, Report deposit to the tax authority . Or suppose that your point-of-sale (POS) system deducts each sale from inventory, and during the processing of a sale it detects that the number of blue jeans in inventory has fallen below the allowed threshold. In other words, a condition has been met, and this triggers the response that will request more jeans be brought up from the stockroom.

What Is a Business Event?

We will be using the term “business event” a lot over the course of this book, so you should be clear on what it means.

A business event is a happening —a time has been reached, a condition has been met, or in the case of external events, an adjacent system decides something. For example, in Figure 17.3 , you see someone deciding to insure her car. Of course, if she wants to get the car insured, she must notify the insurance company. She does this using the triggering data flow Insurance Application . It is called a “triggering data flow” because—fairly obviously—it is made up of data, and it triggers a response from the insurance company: setting up the policy, arranging premium payments, and so on.

Images

Figure 17.3

The business event happens when the owner decides to insure her car.

Note that the business event happened the moment she decided to insure the car. We are talking about business analysis here, so as an analyst you must be inquisitive and ask, What was going through her mind at that moment? For example, how did she pick the insurance company? Was it random, or was it after carefully comparing the policies and rates of different companies? Go further with your analytical role and ask if you (actually your client’s organization) can do that for her. Extending the work by offering a comparison site could be very good for your customer’s business. There are probably other possible opportunities.

Consider buying a book. Suppose you are in a brick-and-mortar bookstore (they still exist, and most are thriving). You’ve picked a book off the shelf, and you decide you want to buy it. That moment of decision is the business event. Of course, for this business event to mean anything you must inform the bookstore that you wish to buy the book.

It is important to see the business event and the triggering data flow as separate (but connected) things . The business event is what happens; the triggering data flow is what the business needs to learn in order to respond to the event.

Giving business events a good name is helpful. The general way of doing this is to form the name from the adjacent system name plus what happened. For example, in Figure 17.3 , the name would be Car owner wants to insure her car .

You would normally determine the business events and list them during the Project Blastoff. This is so that you have a better understanding of all the pieces within the scope of your task. To make the development project more responsive to your client’s needs, you prioritize the events . We talked about how to do this prioritization in Chapter 8 , Prioritizing the Business Events .

Let’s assume you have a prioritized list of the business events that are part of your problem space. Remember, you might have assigned the priority based on some combination of factors that add up to the best value. So, let’s start trawling your most valuable events.

The Business Use Case

The business use case—the BUC—is probably the most convenient chunk of functionality to trawl. It is not an arbitrary unit but is clearly delineated. It has a known and defined starting point—when the incoming data arrives at the edge of the business—and a defined ending point—when all the appropriate processing has been done, stored data has been retrieved and/or stored, and any needed data has been sent to the outside world. This is illustrated in Figure 17.4 .

Images

Figure 17.4

The response to any business event is a business use case. The BUC is a collection of activities that process the incoming data and continue to do so until all the activities that make up the BUC have completed their tasks, all the stored data has been retrieved and/or stored, and any outgoing data has been dispatched.

A business use case is the response to a business event. It is always a collection of identifiable activities and the data that is needed by the activities or stored by the activities. Because it is this collection of activities and data, you can say that it is a collection of the requirements needed to respond to the business event.

The business use case is a collection of the requirements needed to respond to the business event.

You can readily isolate a business use case because it has no processing connections to other BUCs; the only overlap between BUCs is their stored data. Therefore, different analysts can investigate different parts of the problem space without the need for constant communication between them. This isolation of each business use case makes it easier to identify the stakeholders who are experts in that part of the work, and they can (with your help) describe it precisely and in detail.

Business events are known to the stakeholders (they’ll know what they are without necessarily knowing the term “business event”), and they can show you how the organization processes the BUCs. For example, it would be easy enough to find someone in your favorite bookshop who can take you through the process of selling a book, or someone in your insurance company who can show you how the company processes a claim. You can sometimes see the activities within the BUC, and there is always a stakeholder or two who can describe them for you. You are using the BUC as a guide to find your way around the customer’s world and identify the pieces that functionally belong together to support a cohesive piece of the business policy.

Trawling the BUCs

You are trawling the BUC to discover the real business problem and to discover the requirements for a future solution. Subsequent chapters discuss how you can trawl. For the moment, we are establishing what you are doing. Consider Figure 17.5 .

Images

Figure 17.5

The business analyst and the customer select from the prioritized list of business events. They trawl each business event’s BUC. The output can be any recording of the BUC’s functionality.

We must stress that you get the best results if you trawl one business use case at a time. You are doing several things when you’re trawling:

  • ● Establishing that the BUC contributes to solving the right business problem

  • ● Establishing that the BUC is the desired response to the business event

  • ● Discussing the BUC with the stakeholders to explore whether there is a better response

  • ● Ensuring that any ready-made solutions work correctly within the BUC

  • ● Discovering the requirements or stories for the BUC

The output from the Trawling activity is input into the Design and Development activities. ( Figure 17.5 shows how the Trawling activity fits into the overall process.) The record of the BUC is a statement of what the response is to be. When you design and develop, you decide how it is to be.

The Desired Future BUC

Sometimes you have a piece of your customer’s business that does not exist at the moment, but the customer wants it to exist. Or possibly it does exist, but the customer wants any future solution to be different. In this case, you need the people with their vision of the future to describe what they have in mind.

This works when you start with the business events and for each of them, you model what their desired future incarnation is to be . When the intention is to use ready-made solutions to be part or all of the solution for this BUC, then the ready-made, naturally enough, becomes part of any model you build of the desired future state. However, you need to tread a fine line between using ready-mades and leaping into a presumed solution. Your models of the future state should ensure that you are getting to the essence of the problem.

Figure 17.6 shows the requirements discoverer using a storyboard with the customer.

Images

Figure 17.6

The customer describes how he wants the future BUC to work. The business analyst is recording the desired future state using a storyboard. Note that the analyst is modeling one BUC. This BUC is the response to the business event Customer wants to open a bank account .

Using a storyboard to illustrate the problem space allows your customer to confirm the situation and discuss whether this is the best approach to solve the problem, and whether it provides value to the organization.

The desired future BUC is a significant achievement. It is for this BUC that you write your requirements or stories. We have a lot to say about requirements and stories later, but for the moment, the emphasis is on establishing a coherent partitioning and framework for your requirements and stories.

Prototyping and BUCs

In earlier chapters, we looked at the idea of using prototypes to help uncover the real problem and some of the requirements for a future solution. The intention of the prototyping activity is to model the business use cases one at a time. You won’t necessarily model all of them, and sometimes it is convenient to combine BUCs, but your analytical task will be more focused if each of your prototypes concentrates on a single BUC.

The advantage to you is that you know the start and end points for your prototype. This would be clear if you had used, say, a process model for your prototype, as illustrated in Figure 17.7 . The starting event (the circle on the left of the model) represents the business event. The flow of activities makes up the business use case, and the end state is when all the data has been retrieved and stored, and outgoing messages sent.

Images

Figure 17.7

A process model is used to prototype a candidate solution. The advantage of using BUCs here is that the start and end points are very clearly defined.

Describing the BUCs

You need to describe the functionality of the BUC. This is so that you and your stakeholders can arrive at a recorded agreement on what the BUC has to do in order to make the correct response to the business event.

The BUC description contains the processes, the data, the decisions, and the outcome of the BUC. You can describe these in a number of ways. For example, the process model shown in Figure 17.7 has four activities. These are chunks of functionality, and the names of the activities are sufficient to describe what the BUC does.

Alternatively, you could use a scenario to describe the BUC. A scenario is a list of steps, and each one is some piece of functionality that contributes to achieving the processing goal of the BUC. A simple example is to take each of the activities of the process model shown in Figure 17.7 and arrange them in a numbered list. Normally, your scenarios would be a bit meatier, but you get the idea. In Chapter 20 , Scenarios , we’ll look in more detail at scenarios.

You can also use stories (coming up soon), data models, and almost anything you wish as long as your description sets down the functionality needed to achieve the objective of the business use case.

Review

Business events and business use cases allow you to carve out cohesive pieces of the problem space for study, modeling, and prototyping. By coming to an agreement with your customer about the functionality to be done by each of the BUCs, you come to an understanding of the optimal solution to support that functionality. And it is from these BUCs that you write the requirements.

If you are using ready-made solutions, they too respond to business events. Additionally, they must respond to your customer’s business events in a way the customer finds acceptable . There is no real need to trawl the internal workings of the ready-made solutions, but your responsibility is to ensure that the input and output data closely match the needs of your customer’s business.

Business events give you an external view of the customer’s business. This is because the business events are happenings, and many of them happen in the systems that surround your problem space. You are not relying on how it currently happens to be partitioned internally, or on someone’s idea of how it might be partitioned in the future, or “features” or some other arbitrary partition. Instead, you chunk the problem according to the most important view of it: how the outside world sees it. This means that you end up with a solution that is more responsive to the real demands of the outside world, and thereby more valuable to its owner.

You will probably go on to implement your solution one BUC at a time. There is more on implementation in subsequent chapters, but for the moment, it is useful for you to have the necessary functionality grouped into BUCs.

The chapters that follow discuss some of the approaches you can use to trawl your BUCs.

Resources

Object-Oriented Software Engineering: A Use Case Driven Approach by Ivar Jacobson (Addison-Wesley, 1992). This book introduced the idea of use cases. We have modified Jacobson’s approach considerably, marrying use cases to business events, to make them more useful for business analysis.

Essential Systems Analysis by Steve McMenamin and John Palmer (Yourdon Press, 1984). McMenamin and Palmer originated the idea of using business events and event partitioning for analysis work. They referred to them as “events.” We have called them “business events” to make the intention more meaningful. They also introduced the idea of essence. Sadly, this book is out of print.

Business Analysis Agility: Solve the Real Problem, Deliver Real Value by Suzanne Robertson and James Robertson (Addison-Wesley, 2018). This delves into finding the essence of the problem, and then designing a suitable business system to implement the essence.