01 Using Klok Without Writing Code

Using Klok Without Writing Code

Klok exists so that the right information reaches the right system at the right time: an employment registered once reaches both payroll and scheduling, an invoice reaches accounting without being typed in again, and a change in one system does not quietly break three others. The people who get that value are usually not the people who write the code. They are project managers, business developers, product owners, process owners and system owners, and this chapter is written for them and for the architects they work with.

You do not need to know Java, Apache Pulsar, Camel or Kubernetes to use Klok well. You need to know the business process, who owns which information, and what "working" means for the business. Klok turns those answers into integrations that developers and Kloker build and that the platform runs.

What Klok Gives The Business

What you get Why it matters to you
One business flow, one solution. Every integration belongs to a solution with an id, such as KLK010, and every part that implements it carries that id. You can follow a need from its first description to the running service, and back again when something has to change.
Information in the business's own terms. Information that several systems need travels in an agreed datamodel, not in one system's format. Replacing a system changes only that system's own connections. The other integrations keep working.
Reuse instead of rebuilding. Datamodels, topics and services built for one need are visible to the next one. The second integration that needs employment data costs less than the first, and both agree on what an employment is.
Every change is reviewed. Nothing reaches production without a merge request that a person approves. The business decides what it accepts. Kloker and the developers propose, a person approves, the pipeline verifies.
Operation is built in. Every integration retries failed deliveries, keeps what could not be delivered for investigation, and follows each business transaction with one id. When an invoice or an employment did not arrive, someone can find where it stopped without a project of its own.
Documentation that stays true. The solution document changes in the same piece of work as the code, and the technical documentation is generated from the code. What you read is what is built.

Some of this reaches tenant klok's own projects first. The generated documentation, the log events and the shared services (tasks, the Operative Data Layer, AI) serve tenant klok today, and bringing the other tenants onto them is tracked in frontend-klok-dev#51. Until then, klok.dev's Logs follows tenant klok's transactions, and the other tenants' transactions are in the log dashboards, where the tenant's people sign in with their own Klok account (Logs).

Your Part In Five Steps

  1. Describe the need in business language: the problem, the outcome, the systems, the volumes and how fresh the information must be. See Describing The Business Need.
  2. Describe the information: which business objects and events the need is about, who owns them, who needs them and which rules give them their meaning. See From Business Need To Information Needs.
  3. Find out what already exists, together with the architect, before anything new is built. See Finding What Already Exists.
  4. Review and approve the solution document, the design that is written before any code. See Reviewing A Solution Document.
  5. Decide what only the business can decide, and follow the delivery: service levels, accepted risks, sharing information with another domain or another organisation, priorities, and whether the result does what was asked. See Following Delivery And Operation.

From Business Need To Running Integration shows the whole way on one page, with who does what at each step.

What You Never Have To Do

  • Write or read code.
  • Name topics, choose route patterns or pick framework classes. The architect does that, following the platform's naming rules.
  • Handle secrets, servers or the broker. Secrets live in Vault and the broker's configuration in Git, and the tenant's admins and the platform staff take care of them.
  • Choose technology for its own sake. When a technical choice changes what the business gets, for example information arriving once a night instead of at once, the solution document says so in business terms and the business decides.

Where You Work

You want to Go to
Read a solution: why it exists, which systems and which information take part, what is built and what is planned The solution document in your organisation's integration-solutions repository in GitLab. klok.dev lists the solutions under Build → Solutions
See which systems are connected klok.dev, Build → Systems
See which information models exist klok.dev, Build → Datamodels. A model's Topics tab shows which integrations publish and read it
See what depends on what klok.dev, Build → Context graph
Ask a question about the integration landscape klok.dev, Ask Kloker, at the top of the menu or in the top bar. Kloker answers with references to the integration context, so you can check where an answer comes from
Know what a change to a datamodel would affect An impact analysis, started on Kloker → Tasks in klok.dev. The report lists the integrations, topics and projects the change reaches
Put numbers on the business case of an integration: what it costs to build and run, and what it saves klok.dev, Build → Business cases. Start a case from a change request or a solution, let Kloker count the work, add what the business saves, and save it; every save is kept. A solution's Business value sums its cases, and the reason the solution exists is written into its document from them. See Business cases
Follow the runs of a long-running process, and decide what the process is klok.dev, Run → Process runs
Follow one business transaction through every leg klok.dev, Run → Logs: a transaction's page lists every leg it passed and where it stopped. It shows tenant klok's transactions today; every tenant's is frontend-klok-dev#51 (Logs)
Approve a request to create a topic, or to let a service read another domain's or organisation's information klok.dev, Broker → Requests, when you are the domain's or the tenant's admin
Read how a service works Its documentation on docs.klok.dev
Comment, approve and follow the work Issues and merge requests in GitLab

Everything klok.dev shows is read from Git and from the running platform, and anything it does can also be done directly in GitLab. See Git Is The Truth. What each of these pages shows, step by step, is klok.dev's guide for the business and process owner.

The Access You Need

klok.dev has six roles, and none of them is named after a business role. The role follows what you need to do:

You need to Role
Read solutions, systems, datamodels and the integration context of your domains, and ask Kloker questions any role in your tenant; DomainDeveloper in your domain is the usual one
Start an impact analysis on Kloker → Tasks DomainDeveloper in the domain
Request a change on Build → Changes, ask people questions on it and add its issues DomainDeveloper in a domain, or TenantDeveloper
Have Kloker plan a change request, approve its plan, turn it into GitLab issues, break issues into beads and have Kloker implement them, and close the change request DomainAdmin, or TenantAdmin
Approve topic and access requests in your domain DomainAdmin of the domain
Approve requests in every domain of the organisation, including the shared common and public TenantAdmin

Ask your tenant admin for the role; a Keycloak administrator adds you to its group, as described in Access: Roles, Groups, And Tenants. You also need access to your organisation's group in GitLab to read the solution documents and to comment on issues and merge requests.

Working With Kloker

Kloker is Klok's AI. It reads the same landscape you do, inside the same tenant and role boundaries, and it is useful long before anything is built:

  • Ask before you assume. "Which integrations read employment data today?", "Is there a datamodel for a supplier invoice?", "What would replacing our payroll system affect?", "Which solution does this service belong to?".
  • Let it draft a plan. From a change request, Kloker drafts a plan: what can be reused, what is new, the information model levels, the legs, the topic names and the open questions, which you and the architect answer. You or the architect write the change request on Build → Changes in klok.dev (or as an issue labelled change-request in the registry), and Plan with Kloker delivers the plan as a merge request in the registry that you review. The change request's page then shows the questions to people, the issues, the merge requests and the beads until the change is done. The steps are in klok.dev's guide Changes and work.
  • Check what it says. Kloker proposes and never decides: everything it writes becomes a draft, an issue or a merge request that a person accepts or rejects. See Human Review And Traceability.

Words You Will Meet

Word What it means for you
Solution One business flow and the integrations that implement it. Its id, such as KLK010, starts the name of every part
Solution document The description of a solution: why it exists, which systems and which information take part, which parts there are, what is built and what is planned
Leg One part of an integration. An ingress brings information in from a system, an egress delivers it to a system, processing works on it in between, and an API answers calls
Datamodel An agreed description of one kind of business information, such as an employment, with its major version in the name (PersonnelEmploymentBatchV1)
Topic The channel that one kind of information travels on between legs
Purpose A short name that keeps two flows of the same information apart, such as new invoices and reminders
SLR Service level requirement: how fresh, how available and how recoverable a flow must be
Tactical decision An agreed exception to the standard way of building, with its cost and the condition for removing it
Merge request A proposed change in Git that a person reviews and approves before it takes effect
Dead letter A message that could not be delivered after its retries, kept so that someone can investigate and send it again
Correlation id The id that follows one business transaction through every leg it passes

The full list is in the Glossary.