Completeness Check

Your requirements repository is where you record your requirements. Regardless of the way you store them—specification, story map, backlog, requirements tool, and so on—at some stage you will find it necessary to check if you have a complete set of requirements. To point out the obvious, if your requirements are incomplete, then the solution you deliver will also be incomplete .

In this chapter, we are looking at a process to ensure the completeness of the requirements. It is not intended to say that you always wait until you reach a stage where you declare the requirements complete and want to check that they are. While this process works admirably well for that purpose, we urge you to progressively apply the ideas in this chapter to your scenarios and process models as you are working on them .

As you work with your stakeholders on a business process, you ask where the data comes from, where it goes, how it is used, and so on. You are also looking at the process to see what activities are needed, what problems can occur, and what to do if a problem or error is encountered. You should try to apply these ideas early in your discovery process .

Let’s get back to checking for completeness. There are several things you can do to start checking the completeness of your repository .

The first should always be to check that you have the non-functional requirements. These are often overlooked or forgotten in the rush to get the new solution out the door. Look through your business use cases and check if they have a reasonable set of non-functional requirements .

For example, if you are developing a financial product but there are no security requirements, something is definitely missing. Similarly, a web solution that lacks either usability or look and feel requirements is certainly in trouble .

Use the Volere Requirements Specification Template (found in Appendix A ) as a checklist and guide to making sure that you have the relevant non-functional requirements .

The functional requirements should be sufficient to complete the work of each business use case. To check this aspect, play through each of the business use cases as if you were the solution. If you do everything the requirements call for, do you arrive at the outcome for the business use case? Are your users (ideally, they are with you when you perform this role-play) satisfied that the solution will do what they need for their work?

Look for exceptions. Back in Chapter 20 , when we looked at scenarios, we covered exceptions and alternatives. Have you generated enough exceptions and alternatives to cover all eventualities, and do your functional requirements reflect this coverage? If you have scenarios of the business use case, revisit them and, for each step, determine whether exceptions can occur there or whether an exception might prevent that step from being reached .

But of course, all that depends on you having discovered all the business events and their associated business use case. What follows is a short process to ensure that you have a complete set of business events .

Have All Business Events Been Discovered?

You have, at our urging, been discovering and exploring the requirements one business event at a time. The business events are found first by examining the context model and for each flow of data either in or out of the problem space, determining what happened to trigger that flow. These happenings are the business events.

Let’s start with the scope. Figure 37.1 shows the context diagram, and hence the scope, for the deicing solution. (You’ve seen this before.) This predicts when roads are likely to freeze and dispatches a truck to treat the road with an antifreeze compound (it’s mainly salt) before the ice forms on the road’s surface.

Images

Figure 37.1

The context diagram for a solution that predicts when ice will form on roads and schedules a truck to treat the road before it freezes

A quick run around the data flows on this diagram yields the following list of business events and their associated data flows:

  1. Weather Station transmits a reading—Weather Station Reading

  2. Weather Bureau forecasts weather—District Weather Forecast

  3. Road Engineering advises changed roads—Changed Road

  4. Road Engineering installs a new Weather Station—New Weather Station

  5. Road Engineering changes a Weather Station—Changed Weather Station

  6. Time to test Weather Stations—Failed Weather Station Alert

  7. Truck Depot changes a truck—Truck Change

  8. Time to detect icy roads—Road Deicing Schedule

  9. Truck treats a road—Treated Road

  10. Truck Depot reports problem with a truck—Truck Breakdown; Amended Deicing Schedule

  11. Time to monitor road deicing—Untreated Road Reminder

  12. Thermal Map Supplier updates the map—Thermal Map

That gives us 12 business events that cater to all of the flows on the context model.

Now go over the list and look for non-events . The term “non-events” is a play on words—it indicates an event that happens if another event does not happen.

For example, business event 9 is Truck treats a road . What happens if the truck does not treat the road? The work has to do something, and what it does is a non-event (it happened because another event did not happen). The non-event in this case is event 11, Time to monitor road deicing . The work responds to this (non) event by checking whether all roads have been reported as treated and, if they have not, issues an Untreated Road Reminder.

You would then go over the list asking of each event, what happens if this event does not happen? Mostly the answer is nothing; occasionally the answer is that there is a new business event to follow up on the non-happening.

Define the Business Data

The next part of the completeness check involves the business data . This is the data that is stored inside the solution space. It is stored by the incoming data flows when they bring data in from the outside world. Later, this data is read by other business events to do their work. In your solutions, this data will be held by a database or some kind of cloud storage. For the moment, let’s just look at the data and ignore its implementation.

You can, if you wish, build a stored data model. You might have already done this, or you might choose to do it for this completeness check. You can use a class diagram, an entity relationship model, a relational model, or any other data-modeling notation you prefer, as long as it shows the classes of data and the associations or relationships between them. You might prefer to call these things a class of data, an entity, a data object, a thing, or some other name. It does not matter—for the purposes of readability, we’ll use the term “class” and define it like this.

A class of data:

  • ● Represents a type of real-world thing, either concrete or abstract, that is used by the business; for example, a truck, a weather station, a contract, an account.

  • ● Can be given a name that is recognized by the business. It is something that the stakeholders know about.

  • ● Has unique identifiers on each instance of the data in the same class. For example, credit cards have numbers; accounts have an identifying number, as do invoices and insurance policies.

  • ● Is something that needs to be stored and later read by the solution.

  • ● Is a collection of data attributes. The class itself is not data (it has no alphanumeric value), but data is stored about the class.

  • ● Is named with a noun.

  • ● Can be an event that is remembered; for example, agreements, contracts, purchases.

  • ● Can be an adjacent system from the context diagram. The solution most likely keeps data about the customers, banks, suppliers, and so on that are found on many context diagrams.

Some business analysts prefer not to build a model of the stored data, and if you are one of those, consider doing this: Simply make a list of all the classes of stored data. Do this by looking for all the named “things” that are uniquely identified and qualify as a class according to the above list of qualities.

You can start with the flows of data entering and leaving the road deicing context diagram shown in Figure 37.1 , or the list of business events and their data flows listed above.

The first incoming flow is Weather Station Reading . This gives you two classes of data: Weather Station (there must be more than one of these and so they are identified), and Temperature Reading (again, there are many of them and they are identified by the time and date of the reading).

The next flow on the list is District Weather Forecast . This gives you two entities: District (there are many of them, so they are identified, and the solution needs to retrieve them, so they will have a unique identifier); and Forecast (again, something remembered by the solution).

The next flow of data is Changed Road , so the solution must be storing data about roads. Roads are a nameable thing; there are many of them and so they have identifiers. The prediction processing needs to know about the roads, so you add Road to the list of data classes.

Try looking at each of the remaining flows on either the context model or the list of events and identify all the things that you consider to be a class of data.

The list we have (in alphabetical order for the sake of convenience) is as follows:

Depot

District

Forecast

Road

Road Section (we snuck that one in, as we guessed that roads are too long and would need to be divided into sections to make forecasting more precise)

Temperature Reading

Thermal Map

Truck

Weather Station

If you prefer to build a stored data model, then yours would look something like the one in Figure 37.2 . This is our view of the stored data used by the deicing and predicting solution.

Images

Figure 37.2

This model shows the classes of data used to predict and schedule the deicing of roads. The lines connecting the classes are associations, or relationships, needed by the business.

CRUD Check

Now we arrive at the best part. The CRUD (Create, Read, Update, Delete) check is based on the fact that if there is a class of data, it must be Created . It cannot suddenly materialize out of thin air. There must be something to bring it into the solution space. The something that does this is a business event.

Glance back to the context model shown in Figure 37.1 . The incoming data flows are there because business events happen, and when they do, they bring data into the solution via the data flows.

For example, business event 1 on the list shown above is Weather Station transmits a reading . The data flow—conveniently called Weather Station Reading —brings data into the solution where it is stored as the class Temperature Reading . If you look back at the stored data model in Figure 37.2 , you can see this class connected to the Weather Station class. This connection records which Weather Station transmitted the reading.

Similarly, if you look over the list of business events, you can deduce the classes of data that are created (this is the C in the CRUD acronym) by each business event.

If the solution needs to create some data, then it must also make use of that data. This is where the solution Reads the data. Reading the data happens when a business event needs to access some previously created data in order to do its work. For example, the business event Time to detect icy roads would need to read the classes: Road, Temperature Reading, Road Section, Thermal Map, Truck , and so on.

Some of the data is Updated . For example, there is a business event Truck depot changes a truck . This would happen if, say, the depot modified the truck to change its salt capacity. This event results in some of the data attributes of the Truck class being changed.

Finally, some data might be Deleted . This is not deleting for the purpose of cleaning up the database, but because there is some business reason for getting rid of some data. For example, under most countries’ privacy laws, if a company holds personal data about you and you no longer wish that to be the case, then if you request it, the company must delete your data.

If you go through the list of data classes and the business events that do something to them—Create, Read, Update, Delete—then you can build a CRUD table.

If you go through the list of data classes and the business events that do something to them—Create, Read, Update, Delete—then you can build a CRUD table. A suggested one is shown in Figure 37.3 .

Images

Figure 37.3

Each cell shows the identifier of the business event that creates, reads, updates, or deletes the class. Gaps in the table could mean that there are missing events.

Go over the CRUD table. This is a completeness check and you are looking for missing business events. This is the reason you built the CRUD table.

If a class is read without first being created, it means you’ve somehow missed the creation event. If an entity is created without being read, then either a reading event is missing or some data has been created that has no purpose.

Some data classes—but not all—are updated. Sometimes there is no reason why stored data should ever be changed, and sometimes there is every reason. For example, if a customer changes address (a common enough occurrence), then there must be a business event that alters the address data held for the customer. Look at each of the data entities and imagine their attributes. Is there a reason to change any of them? If so, is there a corresponding updating business event in the table?

Similarly, with the Delete column. Not all data is deleted, but you should check the entities and ask if there is a business reason to remove them from the solution’s stored data. If so, find the appropriate business event.

Look for empty cells in the CRUD table—these might reveal missing business events. For example, the classes Depot and District don’t have any creating business events, yet they are read. Thus, the context diagram is incomplete: It lacks the business events with their incoming data flows needed to create these classes of stored data.

Many of the cells in the Update column are blank. Some of these classes would not be updated; however, you should check their attributes for data that is likely to change—names, addresses, and so on—and add any missing business events.

When you find missing business events, you need to revisit your stakeholders to discover what is needed. This should lead to you updating the context diagram, the event list, and the CRUD table. You might have to iterate once or twice before you reach a stable situation.

Then, at the end of the CRUD table exercise, you can be humanly certain that you have discovered all the business events, and this will lead you to finding all the requirements.

Review

While we are urging you to build your requirements specification iteratively, it is imperative that you can reach a point where you can safely say that the specification is complete. Moreover, you might find that there are times when you want to be able to check that the part of the specification you have built so far is complete. In other words, you want to check the completeness of an incomplete spec.

The CRUD check is a powerful weapon for checking completeness. It’s powerful because it is founded on a simple truth that data in the problem space (and in the solution space) must be created, and if it is created, then it must be used. The creation and the using are done by business events.

The CRUD check neatly ties things together. The data flows on the context model indicate the business events. The business events bring data into or take data out of the work scope. This shows up on the CRUD check as Creating and Reading the data.

We touched very lightly on data modeling, and a light touch it must be. Data modeling is a subject in itself, and plenty of books and training material have been written about it. We felt it was beyond the scope of this book to have a full treatise on data modeling. However, it is an area of business analysis that we urge you to look into much more. There are references in the Resources section that should be helpful.

Resources

Data Modeling Made Simple: A Practical Guide for Business and IT Professionals, 2nd Edition , by Steve Hoberman (Technics Publications, 2009). This is an introduction to data modeling. It covers various techniques and provides real-world examples to help you understand how to model data effectively.

Data Modeling Essentials, 3rd Edition , by Graeme Simsion and Graham Witt (Morgan Kaufmann, 2004). This uses entity relationship diagrams to explain the concepts. ER diagrams are slightly different from the class diagrams we have been showing you, and they are good at explaining ideas that business analysts can use.

There are references to the CRUD check buried deep inside books on database design. However, we do not suggest you read any of them. They are concerned with the physical implementation of the data, and not its business meaning.