Business Events

Business events are the building blocks of business solution design and development. They are also the unit of work that forms the most effective way to discover the requirements. But we are getting ahead of ourselves. Let’s start with the business problem you are trying to solve. You have already partitioned using customer segments, which gives you focused chunks of the problem to deal with and the priority in which you deal with the chunks. Now we’ll look at using business events to give you the ideal partitioning for your further investigation .

Business events are significant happenings that trigger a response from the activity within your problem space. See Figure 7.1 .

Images

Figure 7.1

Business events happen when a significant actor outside the business does something that requires a response from the business. There is also a time-triggered business event. In this case the problem space produces a weekly sales report.

Note that the examples that follow talk about the whole of the problem space. This is done for pedagogical reasons: It is easier to discuss business events if they are not layered on customer segments .

We’ll use business events for the remainder of our investigation and development of the solution. The response to each event is investigated, and the result of this investigation is the discovery of the requirements for that part of the problem .

Understanding the Work

In some situations, you have a large number of customers, and they have differing needs. In the previous chapter, we discussed how you can partition them into customer segments. For our purposes here, we will treat each customer segment as a separate piece of work.

There will be some overlap between the segments. The work of each is probably not completely unique, but it is different enough that it is more effective to look at each separately and jump over any duplication you find.

When we talk about a piece of work, consider it to be either the work of a customer segment or the entirety of your business problem space. The examples of work that follow in this chapter ignore customer segments and assume that you are studying the whole of a business problem space.

The work is the activity happening within the problem space. We have defined the problem space by the data that enters and leaves it (we did this in Chapter 5 , Goals-Scope-Stakeholders , when we set the scope of the work and built a context diagram). Now we want to investigate the work that goes on inside that problem space. This is the work or activity that is responding to the incoming data and producing the outgoing data.

The work includes human tasks, software, machines, and low-tech devices such as telephones, photocopiers (remember those?), manual files, and notebooks—in fact, anything that is used to produce the customer’s goods, services, or information.

The Scope of the Work

Your context diagram shows how your work fits within its business ecosystem.

Most business areas exist to provide services or products to the ecosystem that surrounds them. The ecosystem is represented on the context diagram by the adjacent systems. The adjacent systems could be automated systems, or customers who buy from or subscribe to the work, or departments, organizations, or other parties that place some kind of demand on or make some kind of contribution to the work.

To provide services or products, the work receives information and signals from the ecosystem, uses these inputs as raw material for its business processes, and responds by sending information, signals, services, or products back to the ecosystem.

As an example, Figure 7.2 shows the context diagram for a piece of work (you can also call this the problem space) that sells capsule coffee and the machines that use the capsules. This work is fully automated—that is, it is online—and it takes the orders from the customers, processes their payments, and passes the orders to the Fulfillment Center for shipping capsules and machines to the customers. The work shown here is surrounded by its ecosystem: the adjacent systems that either supply the data necessary for this work or receive services and information from the work.

Images

Figure 7.2

The context diagram showing the scope of the work. The central area of the diagram represents the work being done in the problem space. The outside world, the ecosystem, is represented by the adjacent systems—Customer, Fulfillment Center, Payment Processor, and so on. The named arrows represent flows of information between the adjacent systems and the work.

What Are Business Events?

Every piece of work responds to things that happen outside it—it’s that simple. For the sake of clarity, because we are discussing the work done by the business, we call these happenings business events . This idea is shown in Figure 7.3 .

Images

Figure 7.3

A business event and its response. A business event happens at the moment the adjacent system—an entity outside the business—decides to do something and indicates this to the work by providing the triggering data flow. When this data arrives, the work responds by processing the incoming data and by retrieving and recording stored data.

Let’s look at an example of a business event. Suppose that you are a customer for the capsule coffee company we showed you a moment ago. Let’s also suppose that your supply of capsules is running low, and in order to continue enjoying your morning coffee, you decide to restock. You do this by ordering capsules from the coffee capsule company. That moment—the instant you realized that you needed more capsules—is the business event.

Of course, a business event goes unnoticed unless you tell the business about it. In this case, you signaled the work by placing an order for some capsules, and if it was not already on file, you provided your credit card, shipping address, and so on. This incoming flow of data triggers a response within the coffee seller’s work. The response is to charge your credit card, record the sale, and send a message to the Fulfillment Center to ship the capsules to you. In this organization, the physical goods—capsules and machines—are held by the Fulfillment Center, and no physical material (just data) enters the work.

It might seem a little overcomplicated to think separately about the business event and the triggering data flow, but there is a reason for doing so. The business event in this case is Customer needs capsules . Suppose that you examine this happening, and as usual for a business analyst you ask why: Why does the customer need capsules? Why did he run low? Perhaps a better business analysis question is “Why was he allowed to run low?” Could the work have forestalled the situation by automatically replenishing, or running a subscription service, or something similar? Are coffee consumption habits predictable enough to auto-replenish? Is there a nonintrusive way for the customer to be reminded that his stock of capsules is low? Remember, the real business event is Customer needs capsules . The closer you get to that, the better.

By thinking about the actual event and why it came about , you give yourself the opportunity to discover more about the activity of the adjacent system. The coffee customer is in your zone of influence, so you should be studying him.

Another coffee business event: The customer needs help with his membership, or wants advice on types of coffee, or wants to know when his order will arrive, or has some other query. That’s the business event— The customer needs help . However, he will remain un-helped unless he has some way to inform the work that the business event happened. This brings us to the triggering data flow . You can see this triggering data flow called Help Request on the context diagram in Figure 7.2 . When the work receives this flow, it can respond to the business event. It fires up its AI chatbot and through a conversation, provides the answers the customer needs.

The customer does not own or control the coffee company. Nevertheless, in both examples he makes the company respond by processing his incoming flow with the activities to produce the needed outcome.

In some cases, the adjacent system where the business event occurs is an automated system. There’s nothing unusual about this, and you will find that most companies have multiple software systems, and they are constantly passing signals and data between them. Each time this happens it is a business event, and for the system on the receiving end of the data, this is a triggering data flow. It triggers a response just as if the adjacent system were a human.

Business Use Cases

The work area (you can also call this the problem space) always responds to the business event. This response is the processing done to satisfy the request from the outside. It could also be the processing needed to satisfy the business policy that is invoked whenever any time-triggered or conditional event occurs.

In short, the response is processing of some kind, and we call this chunk of processing a business use case (BUC) .

It doesn’t matter whether the processing for the business use case is done by people or machines, or any combination thereof. It is simply processing. You can describe it in several different ways, and you will see examples of these as we go through the book.

The business use case starts at the point where the work is made aware that the event has happened: This is the arrival of the triggering data flow . The processing continues until several things have been achieved. The first is that all necessary data has been retrieved and stored. The second is that the desired business outcome of the BUC has been achieved.

Figure 7.4 is a process model that illustrates the BUC for the business event Customer needs coffee . There are several different notations for this kind of model, and you might use a different one for your own work. Don’t worry about the notation; instead, focus on the functionality and the outcome.

Images

Figure 7.4

A process model of the business use case that responds to the business event Customer needs coffee . The work becomes aware of the event when it receives an incoming data flow, and then responds by activating processes to achieve the desired business outcome.

The business event happens when the Customer needs coffee and generates the triggering data flow Capsule Order . It does not matter whether this data flow is generated by the customer by filling in a screen, sending an email request, telephoning, or walking into a brick-and-mortar shop. The result is incoming data that is represented by the envelope icon in the starting event (that’s the circle at the extreme left of the model). When this data arrives, it triggers the response from the work.

When a business event happens, the work becomes aware of it by the incoming triggering data flow and responds by initiating a business use case.

The first of the responding activities shown in Figure 7.4 is the one that checks that there is sufficient stock on hand to fulfill the customer’s order. The database symbol shows that the activity is accessing stored data. (We’ll ignore for the moment the exception of there not being enough stock.) The next activity is to get an authorization from the credit card company, and then it goes on to record the sale and deduct the ordered quantity from inventory (again, the process accesses stored data).

There are two outgoing data flows from this BUC; one goes to the customer to acknowledge that the order is accepted and will be shipped, and the other goes to the Fulfillment Center where the capsules will be picked off its shelves and shipped to the customer. You can see these incoming and outgoing data flows on the context diagram in Figure 7.2 .

The desired outcome for the business event has been achieved: The capsules will shortly be on their way to the customer, and the stored data about sales and inventory has been updated.

The outcome for each of your business use cases should contribute in some way to the goals of the project. If it does not, then it is a sign that the business event is not needed or is outside the scope of your project. Finally, you need to check that all the goals have been met. They can only be met if your scope is correct and you have discovered all the business events.

In the above example, the triggering data flow, Capsule Order , originated with the customer who is outside the work. Thus, we refer to this, naturally enough, as an external business event . Now let’s look at another kind of business event.

Time-Triggered Business Events

Time-triggered business events are initiated by the arrival of a predetermined time or date . For example, your bank generates a statement of your banking activity on the last day of every month, or your insurance company sends you a renewal notice a month before the anniversary of your policy. “The arrival of a predetermined time” could also mean that a certain amount of time has elapsed since another event happened. For example, you are sent a reminder if two weeks have elapsed since you were sent the original bill. Note that it does not matter whether the customer receives the output by paper or electronic means.

The usual response to a time-triggered business event is to retrieve previously stored data, process it, and send the resultant information to an adjacent system. The coffee capsule company sends out a monthly Club News Bulletin to all its club members. This gives general coffee advice, announces new coffee, and sometimes offers club members discounts on some capsules. The business event is Time to send out Club News Bulletin .

Images

Figure 7.5

A time-triggered business event, this one happening every month. Data stored by previous business events (data stores are shown as named parallel lines) is retrieved, processed, and sent to an adjacent system(s). Here we see the Newsletter Copy and the Capsule Sales data being retrieved, processed, formatted, and sent to the Club Members.

The response to this business event is to retrieve the copy that the copywriter has generated over the past month and stored in a database within the capsule company’s work. The response also includes an AI module that looks at the sales figures, and where appropriate decides whether to offer a discount on the slow-selling capsules. All that information is formatted and emailed to the customers who have signed up to be members of the club. This response is illustrated in Figure 7.5 .

Once the predetermined time for the event arrives, the work’s response is to do whatever is necessary to produce the output. This almost always involves the retrieval and manipulation of stored data. Once again, we use the response to the time-triggered business event—the business use case—as our unit of study.

Conditional Business Events

Conditional business events happen when a condition is met. This condition is usually established by a business rule.

For example, recall the business event where a customer orders capsules from the coffee company. If you glance back at Figure 7.4 —the process model of the response—there is an activity called Record sale and reduce inventory . There is a business rule that specifies the inventory threshold that triggers restocking. If a customer order depletes the company’s inventory such that it reaches the threshold, it triggers the business event Need to resupply capsules . The response to this event is to predict how many capsules are needed and to place the order with the Capsule Supplier . You can see the outgoing order on the context diagram shown in Figure 7.2 .

Data Conservation

Data conservation is a fancy name for “what comes out must have gone in.” If you look back to Figure 7.5 , you can see that the process to generate the monthly newsletter uses three data stores. These are called Newsletter Copy , Club Members , and Capsule Sales . Note that a data store could be anything—automated or manual—that can hold data. As long as it can retain its data over time, we’ll call it a data store.

The data in these stores is put there by external business events. The Club Members data store is added to whenever a customer wants to join the club. There is a data flow on the context model ( Figure 7.2 ) called Club Application . This contains data about the applicant and is stored in the data store Club Members by the processes of the BUC. Similarly, the Capsule Sales data store is added to whenever a Capsule Customer buys coffee.

The data that comes out of a business must have gone into it somehow.

But how does the Newsletter Copy get there? There is no flow on the context model to bring that data into the work area. All the data stored within the work area has to come from the outside, which it does whenever there is a business event. The triggering data flow carries the data into the work where it is processed and stored.

The lack of an incoming data flow carrying the copy means that we have a data conservation error , or more plainly, we have missed a business event. If the coffee company uses generative AI to produce the copy for the newsletter, there must still be a prompt coming from the outside to tell it what to write about, and some data it needs for its language model.

At this stage, that is, early in the project, it would be relatively easy to correct the context diagram and carry on. However, if you discover these data conservation errors later in the project, it will be more serious. It will cause considerable rework to incorporate the missed business events and their stored data.

Why Business Events Are a Good Idea

We may seem to be going to a lot of trouble to describe something that may, at first glance, seem obvious. But this attention to the subject provides a framework for discovering and managing your requirements. Consider that business events:

  • ● Are significant happenings. Business events are more than a mouse click. They represent something that is important to the business.

  • ● Are a natural partitioning theme. They represent the outside world’s view of the problem space.

  • ● Are objective. They are determined by the work’s interactions with the outside world.

  • ● Are the ways your outside customers see your business.

  • ● Ignore internal partitions—departments, systems, technological items, and so on. These hold no interest for outside customers.

  • ● Stop you, to some extent, from plunging into a presumed solution.

  • ● Are cohesive partitions with minimal interfaces between the pieces.

  • ● Are the ideal partition for the discovery of the requirements. You can investigate each event independently of the others.

  • ● Can be used later as implementation units.

Finding the Business Events

Business events are significant happenings that cause the work to respond in some way. To get the work to respond, there can be a triggering data flow, or for a time-triggered and conditional event, there is a resultant data flow on the context diagram.

Let’s make use of that with a different case. Figure 7.6 shows the context diagram for a piece of work that predicts when ice will form on roads and schedules trucks to treat the roads with deicing material before they freeze. Look at the diagram and note the information flows that connect the adjacent systems to the work. For example, the flow called Changed Road is the result of the event that occurs when the Road Engineering department either builds a new road or makes significant alterations to an existing one. The engineering personnel advise the work of the change so that the scheduling work can update its own stored data about roads. The flow called Road Deicing Schedule is the outcome of a time-triggered business event: Every two hours, the work produces a schedule of the roads to be treated and sends it to the Truck Depot .

Images

Figure 7.6

The context diagram for the Ice Breaker work. Note the flows of data entering and leaving the work. These indicate the presence of business events.

Table 7.1

List of Business Events and Their Associated Input and Output Flows for the Road Deicing Work

Event Name Input and Output
1. Weather Station transmits a reading Weather Station Readings (in)
2. Weather Bureau forecasts weather District Weather Forecasts (in)
3. Road engineers advise there are changed roads Changed Road (in)
4. Road Engineering installs a new weather station New Weather Station (in)
5. Road Engineering changes the weather station Changed Weather Station (in)
6. Time to test Weather Stations Failed Weather Station Alert (out)
7. Truck Depot changes a truck Truck Change (in)
8. Time to detect icy roads Road Deicing Schedule (out)
9. Truck treats a road Treated Road (in)
10. Truck Depot reports a problem with a truck Truck Breakdown (in) Amended Deicing Schedule (out)
11. Time to monitor road deicing Untreated Road Reminder (out)
12. Thermal Mapping Supplier updates maps Thermal Maps (in)

Each flow that enters or leaves the work is the result of a business event; there can be no other reason for an external communication to exist. Looking at each flow, you can determine the business event that caused it. In some cases, several flows may be attached to the same business event. For example, when the Truck Depot advises that a scheduled truck has broken down or will be withdrawn from service (input flow Truck Breakdown ), the work responds. Because one of the trucks is now out of service, the other trucks must be rescheduled to compensate for the shortfall, and the resultant outgoing flow is the Amended Deicing Schedule .

Table 7.1 shows a list of business events and their input and output flows for the deicing work. Compare it with the work context diagram in Figure 7.6 and reconcile the business events with the data that flows to and from the work.

Admittedly, you need some knowledge of the work to figure out the business events. To this end, we advise you to start the process of determining business events during blastoff, when the key stakeholders are present. In most situations, you find the stakeholders know the business events (they may not know them by that name, but they will know what they are). Try to identify all the business events during the blastoff. You might miss one or two, but you will find them when you begin to study the work.

Ready-made Solutions

Business events also apply when using ready-made solutions. A ready-made solution is something that already exists and can potentially solve your business problem. It might be a solution to the whole of the problem, or it can be a component that contributes part of the solution. Ready-made solutions can be bought, subscribed to, or acquired as an open-source solution. They can also be legacy solutions . These are whole or partial solutions that your organization has already built or bought. Ready-made solutions are also known as off-the-shelf (OTS) solutions, as commercial off-the-shelf (COTS) solutions, and sometimes as packages . In short, anything that we plan to use without building it from scratch we call ready-made solutions .

If your project proposes to use a ready-made solution or ready-made components then they must respond to the same business events as would any other type of solution. However, with the ready-made solution, your task is slightly different. Instead of discovering what the response to a business event is, you are discovering whether the outcome of the response from the ready-made solution is what you need it to be.

Figure 7.7 is the conceptual view of a proposed ready-made solution. The purpose of the diagram is to illustrate that the ready-made, “out of the box” solution responds to business events. The task is to assess the outcome of each event and compare it with the organization’s desired outcome. The desired outcome would include the data produced by the response, along with the correctness of the algorithms used by the ready-made response.

The objective is to assess whether the business events are suitable, whether the response conforms to the organization’s desired behavior, whether the response needs some modification to be made to the ready-made solution, or in some cases whether the organization needs to change to fit the ready-made solution.

We’ll revisit this later when we look at the Trawling activity in Part IV .

Images

Figure 7.7

The ready-made solution (shown as an open cardboard box signifying an “out of the box” solution) is assessed as to whether the business events it handles match the needed business events and whether the outcome of each event matches the organization’s desired outcomes.

Review

Business events allow you to carve out a rational and cohesive piece of the problem space for further study. Instead of trying to understand the whole of the problem at once, you digest it one business event at a time. Naturally, it’s more effective to analyze moderately sized chunks. These responses—we’re calling them business use cases or BUCs—are independent of each other, so they make an ideal partitioning theme.

By using business events to partition the problem space, you are taking an external view of it. You are not relying on how it happens to be partitioned internally at the moment, or on someone’s idea of how it might be partitioned in the future. Instead, you partition the work according to the most important view of the work: how the outside world sees it.

Later, we will suggest that you develop and deploy the solution one business event at a time. But let’s not get ahead of ourselves. Before doing anything more, we should prioritize the business events.

Resources

Essential Systems Analysis by Steve McMenamin and John Palmer (Yourdon Press, 1984). This book introduced the ideas of essence and business events. Unfortunately, it is now out of print.

Business Analysis Agility: Solve the Real Problem, Deliver Real Value by Suzanne Robertson and James Robertson (Addison-Wesley, 2018). This companion book also looks at business events.

Business Analysis Techniques, 3rd Edition by James Cadle, Debra Paul, Adrian Reed, David Beckham, and Paul Turner (BCS Learning and Development Ltd., 2021). This has a slightly different take on business event analysis.