Animated isometric office in which small characters stand in rooms named after K2 workflow steps, with Bottleneck labels under two crowded rooms
Workflow World: live K2 process instances as people in an office.

Anyone who supports Nintex K2 knows the process instances grid in the management portal. Folio, originator, status, current activity, start date. You scroll, filter and squint, trying to work out whether twelve instances sitting at line manager approval since Monday are a problem or just a normal week.

The K2 management portal showing a grid of process instances with ID, folio, start date, status, originator and version columns
The usual view: a grid of instances.

Workflow World is our answer to the squinting. It takes live K2 process instances and shows them as animated characters on an isometric office floor plan. Each activity is a room and each instance is a person. If a worklist item goes untouched for 24 hours, the character lies down and falls asleep. If an instance errors, an ambulance arrives.

The full Workflow World screen: a header with live counts of instances and bottlenecks, speed controls, and the isometric office with entrance, workflow rooms, a sub-workflow room, errors and completed
Each activity becomes a room, with live counts, bottleneck alerts and playback controls along the top.

The idea

The K2 data model turns out to map neatly onto a building:

  • A process definition becomes the office floor plan, with activities as rooms along a corridor.
  • A process instance becomes a character, whose look is generated from the instance ID so it is the same every time.
  • A worklist item is a person waiting at a desk, with the assigned users in a speech bubble.
  • An IPC or sub-workflow activity is a teleporter room.
  • An error log entry is an unwell character in the error corner.
  • A completed instance waves, bursts into confetti and fades out.

It is not meant to replace the admin console. It answers a different question: at a glance, how healthy is this workflow right now?

How it is built

The back end is .NET Framework 4.8, because that is what the K2 Management SDK needs, self-hosted with OWIN, Web API 2 and SignalR 2, with Microsoft.Extensions for dependency injection, configuration and logging. The front end is React 18, TypeScript and Vite, talking to SignalR 2 through a small hand-written long-polling client.

React app (5173) ← SignalR long-poll → .NET API (9090) ← K2 SDK → K2 (5252)

K2 has no webhooks, so the server polls K2 on a timer, works out what has changed and pushes only the differences. One poll on the server serves every open browser, rather than each tab hitting the management API on its own.

One lesson for anyone using classic SignalR 2 in OWIN self-host: sending to a group from outside the hub was unreliable, so we track connections per workflow ourselves and send to those connection IDs directly.

Turning a workflow into a building

A K2 process definition has no layout, just activities, events and connections, so the engine generates one. Activities alternate above and below a central corridor, with an entrance and exit at either end and error and rejection rooms off to the side. Rooms are isometric diamonds on a 40 by 20 pixel tile grid.

When an instance moves to a new activity, its character walks there properly: to the door, along the corridor, into the new room and over to a spot inside. Walking through walls is not allowed.

The characters

Each instance ID is turned into a skin tone, shirt colour and personality: impatient, relaxed, social, anxious or normal. Impatient characters tap their feet and check their watches. Relaxed ones wander with a coffee. Anxious ones fidget, and get noticeably nervous near the error zone.

Animated view of characters walking out of one room and along the corridor to another
Characters walk between rooms as their instances move on. The same instance always gets the same character.

The tiredness system began as a joke and turned out to be genuinely useful. The longer an instance waits, the more tired its character looks: drooping eyelids after two hours, dark circles after eight, lying down after 24. You can spot a stuck instance from across the screen without reading a single timestamp.

The parts that got out of hand

Stopping an instance from the right-click menu calls a taxi, which drives along the corridor, picks the character up while colleagues wave goodbye, and leaves. There is no productivity case for this at all.

Animated office view with a small yellow taxi arriving at one of the rooms
Stopping an instance calls a taxi.

When an instance errors, an ambulance takes the character to the error room. Retrying sends them walking hopefully back, and if the retry fails, the ambulance returns.

Close-up of the red error room, where a green-faced character with a speech bubble saying help stands next to traffic cones
Errored instances end up in the error room, looking unwell.

Sub-workflows get a teleporter room with a glowing pad and a particle beam. "Waiting on a called sub-workflow" is confusing in a table and obvious when someone is standing on a teleporter.

What it actually shows

We showed it to a non-technical colleague without explaining anything. Within about 20 seconds they asked whether something was wrong in the busy room. It was a bottleneck we had been watching for two days: twelve instances, one approver, average wait over an hour. In the grid it was twelve similar rows. In the office it was a crowded room.

Bottleneck detection runs on the server. When a room is at 90% or more of capacity and the average wait is five minutes or more, every viewer gets a push and the room gets a pulsing red border.

Close-up of a crowded room with a red floor border and a Bottleneck label, with characters falling asleep while they wait
A bottleneck: a crowded room, a red border, and characters falling asleep as they wait.

There is also a day and night cycle based on the real time, with stars after midnight. It is entirely unnecessary and staying in.

Caveats

Workflow World is a proof of concept. It has no persistent storage or distributed deployment, and it works out which activities exist from instances, worklist items and error logs, so a brand-new workflow looks sparse until it has some history. Process definitions are cached for 30 minutes, so a renamed activity takes a while to show.

Try it

The code is on GitHub. You will need the K2 SDK DLLs from your own K2 server, your server details in the settings file, and both the .NET back end and the Vite dev server running. The README covers the setup. If you have built something similar for K2, Nintex or another workflow platform, we would like to hear about it.