08 Solutions

Solutions

A solution is one business flow: its id, the document that describes it and the legs that build it. Solutions is the tenant's register of them, read from the solution registry in Git. Everything that is built belongs to a solution, and its id starts the id of every route that does the work, so this is where you find out what a flow does, whether its document still matches what is built, and where a new flow gets its id.

  • In the menu: Build → Solutions (/integration-assets/integration-solutions)
  • For: architects, business owners and developers read; developers and admins of the tenant or of common change
  • Reads: the registry <tenant>/integration-solutions on main, through GitLab, and the legs each build reported

What You See

Column What it says
Key The solution id, <tenant short name><number>: KLK010
Solution Its name and one-line description; the name opens the solution
Domain The information domain the solution belongs to
State Active, Reserved or Retired as its descriptor on main says; In review !N while a merge request adds it; Your draft for a new solution only you have; Missing on main when its files have left main
Legs Whether the document names the legs that are built: Matches main, N differences, or No builds yet
Updated When the solution last changed in Git

A notice above the list names route ids whose solution id has no folder in the registry: something was built without its solution being registered.

Walkthrough: Find A Solution And Read Its Design

  1. Type a word of its name, its id or its description in the search box.

  2. Open the solution by its name. Overview shows what the descriptor says (status, information domain, description, the business context and service levels) and, under Legs, how the document compares with the routes built on main.

  3. Read the differences under Legs. An Error is a leg the document says is built but no route has; a Warning is a route that is built but not named in the document. Either the document or the code is wrong, and a person decides which.

  4. Scroll on for the solution document as it stands on main: the business context, the systems, the datamodels and the integration legs with their routes, patterns and topics.

  5. Business value sums the business cases that name the solution, and Ask Kloker to write why it exists proposes the document's business context from them (Business Cases).

Walkthrough: Start A New Solution

  1. Choose New solution. Give it a Name the business recognises, and if you like an Information domain and a one-line Description. What klok.dev creates shows the id it will get and the folder it will write.

  2. Create the draft opens the solution's page on Edit, with your draft of its folder: a descriptor with the status reserved and a document with the registry's sections. Nothing is in Git yet; write as much of the document as you know.

  3. Review shows every file the draft adds, the merge request's title and description, and who will merge it. Create merge request pushes the draft to a new branch and opens the merge request; from then on the id is reserved. If someone took the id while you wrote, Take the next free id moves the draft to the next one.

  4. A developer or admin of the tenant or of common reviews and merges the merge request in GitLab. When it is on main, the solution is in the list as Reserved; its document and the status active follow in the same or a later merge request.

A solution started from a change request labelled solution:new (Reserve a solution for it on the request) also moves the request's label to the new id.

What Happens In Git

In klok.dev In Git Merged by By hand
Create the draft Nothing yet: the draft is kept for you in klok.dev — Write the folder locally
Create merge request A new branch in <tenant>/integration-solutions with solutions/<ID>_<slug>/solution.meta.json and README.md, and a merge request titled docs(<ID>): reserve <ID> for <name> A developer or admin of the tenant or of common klok solutions new, or the same files in a merge request of your own
Edit a solution, then Review Your changes to the folder on a branch, and a merge request docs(<ID>): … The same Edit the folder in GitLab or a clone
Refresh from GitLab Nothing: klok.dev reads main again — —

klok.dev never writes the registry's main itself, and it reads main again when the list opens and the last check is more than five minutes old, so a folder added by hand appears in the list. See What klok.dev Does In Git for every page.

Who Does What

Automation Kloker You
klok.dev works out the next free id and checks the descriptor as klok solutions validate would; the list compares the document with the legs each build reports Answers questions about the solution (Ask Kloker beside the page); writes the merge request's title and description for your draft when you ask (✦ beside the title); designs a change to the solution, as a merge request in the registry, when a change request is planned with Kloker (Changes) Name the solution, write or approve its document, review and merge

How It Connects

A solution starts from a need (Changes), names the systems and datamodels it uses (Systems, Datamodels), and is built in integration projects (Integration Projects); every build reports its legs back, which is what Legs compares.

Read More