Skip to content

Declare a register, give it a lifecycle and author its flow

You have been asked to “put our service requests into Kiln”. Somebody reports a fault, somebody fixes it, and the person who reported it wants to know it is being looked at. You have an empty tenant.

By the end of this you will have a register of service requests, a lifecycle that moves each one from Received to Resolved, a board your team works from, and a flow that tells the person who raised a request when work on it starts. You will also have the record of that flow running, which you can show the person who asked.

This takes about thirty minutes, and everything you build is kept.

Kiln has three modes. They are the buttons at the top of the left-hand menu: Work, Build and Analyse.

Build is where you declare things. Work is where people do the work. Analyse is where you see what happened.

The left-hand menu changes with the mode. In Build it is grouped: Documents, Automation (Flows, Flow tests, Fixtures), Definitions (Registers, Dashboard views) and Admin (Connections, Inboxes, App clients, Secrets, Devices).

You will build four things, and each has one job:

  • a register holds the facts: one row per service request;
  • a lifecycle holds where each request is: its stages, the moves between them and who may take each move;
  • a view is how your people see the rows, such as a board with a column per stage;
  • a flow is what happens automatically when something occurs, such as a request reaching a stage.

1. Declare the register (Build, Registers)

Section titled “1. Declare the register (Build, Registers)”

Click Build, then Registers in the left menu, under Definitions. Click New register.

Give it three things.

A name: Service requests.

A code, which Kiln fills in from the name. Leave it. Views, flows and templates refer to the register by its code, never its name, so you can rename the register later without breaking anything. The code cannot be changed after you press Create.

A singular object name: the word for one row, service request. Kiln speaks it back to you everywhere it would otherwise say “row”, so a button reads Add service request. Use the word your team already uses.

Click Create. The register opens as its own tab, with five tabs of its own: Columns, Lifecycles, Views, Settings and Details.

Click Add column. A panel opens on the right. Give the column a Column name and a Kind, and click Add. Add three:

  • Summary, kind Text: what is wrong.
  • Site, kind Text: where it is.
  • Priority, kind One of a list. Once it is added, type each choice into Add a choice and press Enter: Low, Medium, High. Then click Save and close.

Do not add a Status column. The lifecycle you declare next tracks where each request is.

2. Give it a lifecycle (Build, the register’s Lifecycles tab)

Section titled “2. Give it a lifecycle (Build, the register’s Lifecycles tab)”

Click the register’s Lifecycles tab, then New lifecycle. Name it Request handling and click Create. A lifecycle always belongs to the register it was declared from.

The lifecycle opens as its own tab on Stages and moves.

Type a stage name into the box above the canvas and click Add stage. Add three: Received, In progress and Resolved.

The first stage you add is where every request starts, and the canvas marks it START.

Click Resolved on the canvas and tick Finished: an instance that reaches this stage ends. The canvas marks it END.

Click In progress and set its Assignee role to Register worker. Whoever moves a request into In progress picks the person to assign it to from the members holding that role.

Under Moves, below the canvas, type a move name and click Add move. Set where it goes From and To in the panel beside the canvas. Add two:

  • Start work, from Received to In progress.
  • Resolve, from In progress to Resolved.

You can also draw a move by dragging from the edge of one stage to another.

The panel also says Who may take it. With no conditions, anyone who may act on lifecycles may take the move. Add a condition offers four: holds a role, is the assignee, is a kind of actor (a person, a flow or an app client), and is not the member who took another move, which is how you require a second person to sign off. Leave it empty for now.

Open Lifecycle settings, at the bottom of the page, and tick Start automatically when a row is added. Every new service request then starts in Received the moment it is added.

Click Publish, at the top right, and confirm. The header now says Published, version 1. A lifecycle that is still a draft cannot be started on any row.

3. Show it in Work (Build, the register’s Views and Settings tabs)

Section titled “3. Show it in Work (Build, the register’s Views and Settings tabs)”

Go back to the register’s tab and click Views. Kiln already gives every register a grid, a form and a record view, marked Derived. Add a board beside them.

Click New view. Name it Requests board, choose the kind Board: cards in lifecycle stages, choose Request handling as its Lifecycle and Summary as its Card title. Click Create.

The view opens as its own tab. Click Menu, and set Where it shows in Work to A tab on its register. Then click Publish, and confirm.

Back on the register’s tab, click Settings, tick Show service requests in Work, and click Save. The register now has its own entry in the Work menu.

Click Work, then Service requests in the left menu. You see the grid, with a Requests board tab beside it.

Click Add service request, fill it in and click Add. The request opens on its record. The card at the top says Request handling, shows it in Received, and offers the one move that stage allows: Start work.

Click Start work. Kiln asks who to assign it to, from the people holding Register worker. Choose someone and confirm. The card moves to In progress and now offers Resolve.

Click the Timeline tab. Every step is there: who added the request, who moved it, and who it was assigned to.

This shows you what your flow will act on, the way your team will see it, before you build anything that depends on it.

Now the automation: when a request reaches In progress, tell the person who raised it.

Click Build, then Flows in the left menu, under Automation. Click New flow. Name it Tell the requester work has started and click Create. The canvas opens with an empty node waiting for its kind, and a Done outcome.

Choose Event Trigger. In the panel on the right, set Event to Lifecycle moved. Then narrow it under Only when, with Add condition:

  • lifecycleCode equals request-handling, the lifecycle’s code. Without this, the flow reacts to every lifecycle in your tenant.
  • stage equals in-progress, the stage’s key. Without this, it reacts to every move, including Resolve.

A flow refers to stages, lifecycles and columns by their key or code rather than the name on screen. The key never changes, which is what stops a rename breaking every flow that mentions it. If a flow does nothing, check the keys first.

Click Nodes, the first button down the left edge of the canvas, search for Notify and click it. It is added after the trigger and joined to it.

In its panel, set Subject to Register row and Recipients to Reporter, the person who raised the request. Also email decides whether they get an email as well as a notification in Kiln.

Then join three things on the canvas by dragging from one dot to another:

  • the trigger’s rowKey to the Notify node’s Subject ID, so it knows which request this is about;
  • the Notify node’s out to the Done node’s in.

Under Pin defaults, give it a Title and a Message: Work has started on your service request and Someone is now working on your request.

The list under the canvas names anything still missing. When it shows no problems, click Publish, and confirm.

Why In progress and not Resolved. Reporter and Assignee are worked out from the lifecycles still open on the row. Once a request is resolved its lifecycle has finished, so a Notify node reacting to Resolved has nobody to tell under those rules. To tell someone about a finished request, choose Role holders or Particular people instead.

6. Raise another one and watch (Work, then Analyse)

Section titled “6. Raise another one and watch (Work, then Analyse)”

Add a second service request and click Start work. This time the flow runs.

Click the bell at the top right. The person who raised the request sees Work has started on your service request. The request’s Timeline records it too: Notification sent.

Click Analyse, then Runs. Click the run. You see who triggered it (Lifecycle moved on your register), each step with its status, and the outcome it reached. Click a step to see what it was given and what it produced.

The run records what each step received and produced, not just whether the flow succeeded. If somebody later asks why a person was or was not told, the answer is on record.

You now have four things to show: a register in your team’s own words, a lifecycle that moves each request from Received to Resolved, a board your team works from, and a flow that tells the requester when work starts, with the run that did it.

You can also ask Mímir to build all of this from a description. Open Build with Mímir, at the top of the Build menu, and describe the work in your own words, such as “service requests that go from received to in progress to resolved, and tell the requester when work starts”. Mímir proposes a plan, one step per register, lifecycle, view and flow. Nothing is built until you approve it, it builds each step as you and only with your permissions, and unless you allow otherwise, nothing goes live until you choose Make it live. Each step lands in the same screens you have just used, so you can open and check every one.

Your flow needs data from another system. Use a Connection, and the flow gets it through an integration step rather than you copying it in.

Requests arrive from somewhere else. A flow can add the row for you: from an email through an Inbox, or from another system sending a signal through an App client. Allow it on the register’s Settings tab, under Flow permission.

A move needs a second pair of eyes. On the move, Add a condition and choose Is not the member who took another move. The person who did the work can then never be the person who signs it off, wherever the move is attempted from.

You want to change the flow now that it is live. Click Start a new draft in the flow’s editor, which leaves the published version running while you work. Then read Prove a change before you publish.

More about registers, columns and who may see what is on the Registers page.