03 Describing The Business Need

Describing The Business Need

Every Klok integration starts with a business need written in business language, before anyone talks about APIs, topics or code. The need is what the architect designs from, what the reuse analysis searches with, and what the result is accepted against. A need that is clear about ownership, volumes and service levels saves weeks later; a need that hides what is unknown costs them.

The need is written by the person who owns the business outcome: a project manager, a business developer, a product owner or a process owner. System owners help with the facts about their systems.

What The Need Answers

Question Why it matters
What goes wrong today, and for whom? One real example is worth a page of description. It tells the architect what the integration must prevent, and it is how the result will be judged.
What should the business be able to do afterwards, and how will you know? A measurable outcome ("no employment is registered twice", "an order reaches the warehouse within five minutes") is something the result can be tested against.
Who owns the need? The organisation (in Klok, the tenant) and the business area (the domain), and who decides when there is a conflict. Ownership decides where the solution, its information and its topics live, and who approves changes to them.
Which systems take part, who owns each, and what does each one do in the flow? Each system gets its own legs. Its owner knows how it can be reached, what it can send and what it accepts.
What happens in the business that another system needs to know? Write it as events: "an employment starts or changes", "a schedule period is ready for payroll". The events become the flows of the solution, and the information in them becomes its datamodels.
How much, and when? Volumes per day, peaks, fixed windows such as a payroll run. Volume and rhythm decide whether information travels one item at a time or in batches, and how the solution is sized.
How good must it be? How fresh the information must be, how long the flow may be unavailable, whether anything may be lost or arrive twice, who is told when something fails, and how a failed delivery is repeated. These are the service level requirements (SLR). They decide the design more than anything else on this list.
Which information must be protected? Personal data, sensitive data, who may read it, and whether it leaves the organisation. It decides access, and whether another organisation reads the information under a grant the owner approves.
What is out of scope? Saying what the solution will not do keeps it from growing into everything nearby.
What is not known yet? One question at a time, with who can answer it. Open questions are normal. A design built on a guess is not.

If you do not know the answer to a question, write that down. It becomes an open question in the solution document, and the architect plans around it until it is answered.

A Template

Copy this into a document, an issue or the change request of a solution in klok.dev, and fill it in. The architect turns it into the solution document.

# <Name of the solution>

## The problem today
What goes wrong without the integration, for whom, with one real example.

## The outcome
What the business can do afterwards, and how we will measure it.

## Ownership
Organisation (tenant), business area (domain), who decides.

## Systems
| System | Owner and contact | What it does in this flow | How it can be reached, if known |

## What happens in the business
The events other systems must learn about, in business words.

## Volume and rhythm
Per day, peaks, fixed windows.

## Service levels
Freshness, availability, loss and duplicates, who is alerted, how a failed delivery is repeated.

## Information protection
Personal or sensitive data, who may read it, whether it leaves the organisation.

## Out of scope
What the solution will not do.

## Open questions
One per question, with who can answer it.

Where The Answers Go

The architect writes the answers into the solution document in the organisation's integration-solutions repository, so that they are kept next to the design they shaped:

Your answer Section of the solution document
The problem today, the outcome, the ownership 1. Business context
Out of scope 2. Scope
The systems 3. Systems
What happens in the business the input to 5. Datamodel and 8. Flows
Service levels 9. Service level requirements
Information protection 10. Security and tenant isolation
Open questions 12. Open questions, one issue each

Each system is also described in the tenant's integration-solutions repository, under systems/<system>/: its owner, how it is reached, how it authenticates, its formats, rate limits and batch windows. klok.dev lists the systems under Build → Systems (Set Up The Integration Landscape). Secrets are never written into the need, an issue or a document.

Common Mistakes

  • Starting with a solution. "We need a REST API between A and B" is a design, not a need. Write what the business must achieve and let the design follow.
  • "Real time" without a number. Write how fresh the information must be ("within five minutes", "before 06:00 every day"), and what it costs the business when it is late.
  • Describing one system's fields instead of the business meaning. "Field anst_typ is 2" means nothing to the next system. "A temporary employment" does.
  • Leaving out who owns the information. Every piece of information has a system that is its source and a domain that decides what it means.
  • Hiding what is unknown. An unconfirmed file format or an unagreed service level is a normal state for a new solution. Write it as an open question.

An Example

The business context of solution KLK010, in short: a municipality staffs care and social services in its scheduling system, but keeps employments, absence and pay in its payroll system. The two systems must agree on who is employed, at what degree of employment and in which unit, and on what those people actually worked. Without the integration the same employment is registered twice and every scheduled shift is typed into payroll by hand; the errors that produces are pay errors. The solution document continues from there.

The next step is to turn the events and the systems into information needs: From Business Need To Information Needs.