<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Simon on Medium]]></title>
        <description><![CDATA[Stories by Simon on Medium]]></description>
        <link>https://medium.com/@simon_82928?source=rss-81f7f203eb4f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Simon on Medium</title>
            <link>https://medium.com/@simon_82928?source=rss-81f7f203eb4f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 03:50:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@simon_82928/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Meet Agent Bob: How We Built an AI Assistant Inside a Low-Code Platform (And Lived to Tell the…]]></title>
            <link>https://medium.com/@simon_82928/meet-agent-bob-how-we-built-an-ai-assistant-inside-a-low-code-platform-and-lived-to-tell-the-cda730a6a7d4?source=rss-81f7f203eb4f------2</link>
            <guid isPermaLink="false">https://medium.com/p/cda730a6a7d4</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[phi]]></category>
            <category><![CDATA[llm-agent]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Simon]]></dc:creator>
            <pubDate>Thu, 02 Apr 2026 11:10:32 GMT</pubDate>
            <atom:updated>2026-04-02T11:10:32.581Z</atom:updated>
            <content:encoded><![CDATA[<h3>Meet Agent Bob: How We Built an AI Assistant Inside a Low-Code Platform (And Lived to Tell the Tale)</h3><p><em>A journey of stubborn Swagger files, self-signed certificates, and teaching a small language model to query databases in plain English.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4M60_AHEk1FiEZApfGDFwQ.png" /></figure><h3>The Idea That Started It All</h3><p>Picture this: you’re sitting in front of a K2 SmartForm — one of those enterprise workflow platforms that runs half the business. A user fills in a demand form, clicks submit, waits for approval. Rinse and repeat. Thousands of times.</p><p>What if that form could <em>think</em>?</p><p>Not “send data to ChatGPT and pray” thinking. Real, on-premises, secure, we-own-the-model thinking. The kind where your data never leaves your network, your IT security team doesn’t have a collective aneurysm, and your CFO doesn’t faint when they see the API bill.</p><p>That’s how Agent Bob was born.</p><h3>The Stack (Or: How Many Moving Parts Can One Person Juggle?)</h3><p>Agent Bob lives at the intersection of several technologies that were never designed to talk to each other:</p><p><strong>The Brain:</strong> Microsoft’s Phi-4-mini — a small but surprisingly capable language model running via Ollama on a Windows Server Azure VM. No GPU. Just raw CPU determination.</p><p><strong>The Body:</strong> A .NET REST API hosted in IIS, acting as the middleware between K2 and the LLM. This is where the magic happens — endpoints for prompting, data analysis, SQL querying, document analysis, and natural language database queries.</p><p><strong>The Face:</strong> A custom K2 JavaScript control called gds-ai-chat — a chat interface embedded directly into SmartForms. Users type questions, Bob answers. Simple as that.</p><p><strong>The Nervous System:</strong> K2 SmartObjects connected via the REST broker, using carefully crafted Swagger definitions. This is where most of our war stories come from.</p><h3>Chapter 1: Getting the Brain Online</h3><p>Setting up Phi-4-mini on a Windows Server VM with no internet access is an exercise in creative problem-solving. Everything had to be transferred via USB — the .NET SDK, the Ollama installer, the model weights (several gigabytes of them).</p><p>The first time we got a response back from the model, it felt like teaching a computer to speak for the first time:</p><pre>prompt: &quot;Say hello&quot;<br>response: &quot;Hello! How can I assist you today?&quot;<br>processingTimeMs: 2588</pre><p>Two and a half seconds. On CPU. Not bad for a model running on what is essentially a very expensive calculator.</p><p><strong>Win #1:</strong> Phi-4-mini responds in 2–14 seconds for most prompts. Fast enough to be useful, slow enough to appreciate.</p><p><strong>Challenge #1:</strong> Complex queries with lots of data can take 60–140 seconds. On CPU, there’s no shortcut. This led us to build an async pattern early on — submit a job, poll for results. More on that later.</p><h3>Chapter 2: The Swagger Wars</h3><p>If you’ve ever tried to get the K2 REST broker to properly deserialise a JSON response, you know pain. Pure, unfiltered, “why won’t you just read the properties” pain.</p><p>Our first Swagger definition returned this from K2:</p><pre>Methods: Serialize, Deserialize</pre><p>Not Success. Not Response. Not Error. Just... serialise the whole thing into a blob. Thanks, K2.</p><p>We tried inline object schemas. We tried array responses. We tried bribing the REST broker with compliments. Nothing worked.</p><p>Then we found a working ArcGIS Swagger file and reverse-engineered the pattern. The secret sauce? Three things:</p><ol><li><strong>Use </strong><strong>$ref to named definitions</strong> — not inline schemas</li><li><strong>Include </strong><strong>required fields</strong> on the definition</li><li><strong>Add a </strong><strong>title property</strong> to the definition</li></ol><pre>&quot;responses&quot;: {<br>  &quot;200&quot;: {<br>    &quot;schema&quot;: {<br>      &quot;$ref&quot;: &quot;#/definitions/LlmResponse&quot;<br>    }<br>  }<br>},<br>&quot;definitions&quot;: {<br>  &quot;LlmResponse&quot;: {<br>    &quot;type&quot;: &quot;object&quot;,<br>    &quot;title&quot;: &quot;LlmResponse&quot;,<br>    &quot;required&quot;: [&quot;Success&quot;, &quot;Response&quot;, &quot;Error&quot;, &quot;ProcessingTimeMs&quot;, &quot;Model&quot;],<br>    &quot;properties&quot;: {<br>      &quot;Success&quot;: { &quot;type&quot;: &quot;string&quot; },<br>      &quot;Response&quot;: { &quot;type&quot;: &quot;string&quot; }<br>    }<br>  }<br>}</pre><p>And just like that, K2 generated proper Execute methods with individual return properties.</p><p><strong>Win #2:</strong> All response values returned as strings. K2 loves strings. Booleans and integers? Not so much.</p><p><strong>Challenge #2:</strong> Every endpoint needs its own Swagger file and service instance. Five endpoints = five Swagger files = five service instances. It’s not elegant, but it works.</p><h3>Chapter 3: The HTTPS Trilogy</h3><p>Getting the JavaScript control to call the API from a browser opened a trilogy of errors worthy of a Peter Jackson extended edition.</p><p><strong>Act 1: Mixed Content.</strong> The K2 site runs on HTTPS. The API was on HTTP. Browsers said no. Fair enough.</p><p><strong>Act 2: CORS Double Header.</strong> We added CORS headers in both web.config and Program.cs. The browser received Access-Control-Allow-Origin: *, * — two asterisks. One too many. Browsers said no again.</p><p><strong>Act 3: The Certificate Saga.</strong> Self-signed certificate created. Browser complained: ERR_CERT_COMMON_NAME_INVALID. Turns out modern Chrome requires a Subject Alternative Name (SAN), not just a Common Name. Created a new certificate with SAN. Exported it. Imported it on the K2 server. Imported it on every client machine. Finally, silence. Beautiful, error-free silence.</p><p><strong>Win #3:</strong> HTTPS working on port 5218 for browser calls, HTTP on port 5217 for server-to-server SmartObject calls. Best of both worlds.</p><p><strong>Challenge #3:</strong> Self-signed certificates need to be trusted on every machine that accesses the chat control. A proper internal CA or certificate from the domain registrar would be the production solution.</p><h3>Chapter 4: What Agent Bob Can Actually Do</h3><p>Here’s where it gets exciting. Agent Bob isn’t just a chatbot. He’s a multi-skilled analyst sitting inside your workflow platform.</p><h3>1. Simple Prompting</h3><p>Ask Bob anything. He’ll respond with the knowledge baked into Phi-4-mini.</p><pre>GET /api/k2/prompt?prompt=What+are+signs+of+a+data+quality+issue</pre><h3>2. Data Analysis</h3><p>Pass Bob some JSON, CSV, or plain text data and ask a question about it. He’ll analyse it, find trends, and make recommendations.</p><pre>GET /api/k2/analyse?question=Who+is+busiest&amp;data=[{&quot;name&quot;:&quot;Alice&quot;,&quot;tickets&quot;:12},<br>{&quot;name&quot;:&quot;Bob&quot;,&quot;tickets&quot;:45}]&amp;dataFormat=json</pre><h3>3. SQL Analysis</h3><p>Give Bob a SQL query, point him at any database (server and database passed at runtime), and he’ll run the query and analyse the results.</p><pre>GET /api/k2/analyse-sql?question=What+trends+do+you+see&amp;sqlQuery=SELECT+TOP+20+*<br>+FROM+APP.Demand&amp;server=K2SQL2019&amp;database=k2_daa</pre><p>The beauty? Windows Authentication. The IIS app pool identity connects to SQL Server — no passwords stored anywhere.</p><h3>4. Document Analysis</h3><p>Upload a document (via URL, file share path, or base64) and ask Bob about it. He supports Word documents, Excel files, CSVs, and text files.</p><pre>POST /api/k2/analyse-document<br>{<br>    &quot;question&quot;: &quot;What are the biggest risks in this report?&quot;,<br>    &quot;fileUrl&quot;: &quot;https://sharepoint/sites/docs/project-report.docx&quot;<br>}</pre><p>Bob downloads the file into memory, extracts the text, analyses it, and discards it. Nothing stored on disk.</p><h3>5. Natural Language to SQL (The Show-Stopper)</h3><p>This is the one that makes people’s eyes light up. Ask Bob a question in plain English, tell him which tables to look at, and he writes the SQL, runs it, and gives you a human-readable answer.</p><pre>POST /api/k2/ask-database<br>{<br>    &quot;question&quot;: &quot;How many demands were created last month?&quot;,<br>    &quot;server&quot;: &quot;K2SQL2019&quot;,<br>    &quot;database&quot;: &quot;k2_daa&quot;,<br>    &quot;schema&quot;: &quot;APP&quot;,<br>    &quot;tables&quot;: [&quot;Demand&quot;]<br>}</pre><p><strong>What happens behind the scenes:</strong></p><ol><li>Bob retrieves the table schema from INFORMATION_SCHEMA.COLUMNS</li><li>Sends the schema + question to the LLM</li><li>LLM generates a SELECT query</li><li>API validates it’s safe (no INSERT, DELETE, DROP — just SELECT)</li><li>Runs the query</li><li>Sends results back to the LLM for a natural language summary</li><li>Returns both the answer AND the generated SQL for transparency</li></ol><p>A user who has never written SQL in their life can now query enterprise databases by typing “Show me all overdue demands assigned to the finance team.”</p><h3>Chapter 5: The Async Pattern (Because Patience Has Limits)</h3><p>K2 SmartObjects have timeouts. LLMs take their time. This is a recipe for 504 Gateway Timeout errors.</p><p>The solution: a submit-and-poll pattern.</p><pre>Step 1: Submit  →  &quot;Here&#39;s a job ID: a1b2c3d4&quot;  (instant)<br>Step 2: Process →  (happens in the background, 10-60 seconds)<br>Step 3: Poll    →  &quot;Status: completed. Here&#39;s your answer.&quot;  (instant)</pre><p>The user’s K2 form submits a job, gets back an ID immediately, and either polls via JavaScript or waits for a K2 workflow timer to check the result. No timeouts. No spinning wheels of death.</p><h3>Chapter 6: Agentic Use Cases — Where Bob Gets Really Interesting</h3><p>Everything described so far is Bob responding to explicit commands. But the real power comes when Bob is embedded into the workflow itself — making decisions, drafting content, and assisting users in context.</p><h3>Form-Aware AI</h3><p>Imagine a demand form where the user has filled in the title, budget, and department. The chat control can read those form fields and provide contextual assistance:</p><p><em>“I see you’re submitting a Cloud Migration demand for the IT department with a budget of £450,000. Based on similar approved demands, the average budget for cloud migration projects was £380,000. You may want to provide additional justification for the higher amount.”</em></p><h3>Approval Intelligence</h3><p>When a demand reaches an approver, Bob analyses it against historical data:</p><p><em>“This demand is for server hardware at £12,000. Similar requests have been approved 92% of the time. Average processing time was 5 days. The budget is within normal range for this category. No concerns flagged.”</em></p><h3>Workflow Automation</h3><p>A user types into the chat: “Remind Dave to check the budget for Demand 47 by next Tuesday.” Bob extracts the structured data — assignee, action, reference, due date — resolves “Dave” against the user directory, and kicks off a K2 workflow that creates the task.</p><h3>Smart Notifications</h3><p>When a demand is approved, instead of a generic “Your demand has been approved” email, Bob drafts a contextual notification:</p><p><em>“Great news — your Cloud Migration demand (#47) has been approved with the full £450,000 budget. Jane Smith has been assigned as sponsor. Next step: schedule a kickoff meeting with the project team by April 15th.”</em></p><h3>The Architecture at a Glance</h3><pre>┌─────────────────────────────────────────┐<br>│           USER&#39;S BROWSER                │<br>│  ┌─────────────────────────────────┐    │<br>│  │  K2 SmartForm                   │    │<br>│  │  ┌──────────┐  ┌────────────┐  │    │<br>│  │  │ Form     │  │ AI Chat    │  │    │<br>│  │  │ Fields   │  │ Control    │──┼────┼──→ HTTPS :5218<br>│  │  └──────────┘  └────────────┘  │    │<br>│  └─────────────────────────────────┘    │<br>└─────────────────────────────────────────┘<br>                    │<br>          K2 SmartObjects<br>          (server-to-server)<br>                    │<br>                HTTP :5217<br>                    │<br>                    ▼<br>┌─────────────────────────────────────────┐<br>│         .NET REST API (IIS)             │<br>│                                         │<br>│  /api/k2/prompt                         │<br>│  /api/k2/analyse                        │<br>│  /api/k2/analyse-sql                    │<br>│  /api/k2/analyse-document               │<br>│  /api/k2/ask-database                   │<br>│  /api/k2/submit  (async)               │<br>│  /api/k2/result  (async)               │<br>└──────────────┬──────────────────────────┘<br>               │<br>               ▼<br>┌──────────────────────┐  ┌──────────────┐<br>│  Ollama + Phi-4-mini │  │  SQL Server  │<br>│  (localhost:11434)   │  │  (any server)│<br>└──────────────────────┘  └──────────────┘</pre><p><strong>Two paths, one API:</strong></p><ul><li><strong>JavaScript control</strong> → HTTPS (port 5218) → API → Ollama</li><li><strong>K2 SmartObjects</strong> → HTTP (port 5217) → API → Ollama</li></ul><p>Both hit the same endpoints. The only difference is the transport layer.</p><h3>Lessons Learned (The Hard Way)</h3><p><strong>1. K2 REST broker wants </strong><strong>$ref definitions with </strong><strong>required fields and </strong><strong>title.</strong> Inline schemas produce serialised blobs. Named definitions produce usable properties. This one thing cost us hours.</p><p><strong>2. CORS headers belong in </strong><strong>web.config, not </strong><strong>Program.cs.</strong> When IIS hosts a .NET app, both can add headers, resulting in duplicates. Pick one place. We chose web.config.</p><p><strong>3. All response values should be strings.</strong> K2 SmartObjects handle strings reliably. Booleans and integers can cause mapping issues.</p><p><strong>4. Filter in SQL, not in the LLM.</strong> Sending 500 rows to the LLM and asking it to “find Bob” takes 90 seconds. Running WHERE Title LIKE &#39;%bob%&#39; in SQL and sending 2 rows to the LLM takes 10 seconds.</p><p><strong>5. Self-signed certificates need SANs.</strong> Chrome and Edge ignore the Common Name. Subject Alternative Name is mandatory.</p><p><strong>6. Windows Authentication is your friend.</strong> No passwords in config files, no credentials in URLs. The app pool identity handles everything — SQL Server, SharePoint, file shares.</p><h3>What’s Next for Agent Bob</h3><p>The to-do list is growing faster than we can build:</p><p><strong>Conversation Memory</strong> — SQL-stored chat history so Bob remembers context. “Break that down by type” will actually work because Bob knows what “that” refers to. Multi-turn conversations using Ollama’s native chat API, with flags to control what gets saved and what doesn’t.</p><p><strong>Email Drafting</strong> — Bob generates professional emails based on workflow context. Approvals, rejections, chasers — all contextual, all polished, all triggered by K2 workflows.</p><p><strong>Ad-hoc Task Creation</strong> — “Send Dave a task to review the budget by Tuesday.” Bob extracts the who, what, and when, resolves the user against Active Directory, and fires off a K2 workflow.</p><p><strong>Knowledge Base (RAG)</strong> — Feed Bob your company policies, procedures, and FAQs. Users ask “What’s the process for procurement over £10k?” and get an answer from your own documents.</p><h3>The Honest Truth About Running AI On-Premises</h3><p>It’s slower than cloud APIs. A question that GPT-4 answers in 2 seconds takes Phi-4-mini 15–50 seconds on CPU. Complex natural language to SQL queries can hit 140 seconds.</p><p>But here’s what you get in return:</p><ul><li><strong>Zero data leaves your network.</strong> Not a single token.</li><li><strong>Zero per-request costs.</strong> The VM costs the same whether you run 10 queries or 10,000.</li><li><strong>Full control.</strong> You choose the model, the endpoints, the security policies.</li><li><strong>No vendor lock-in.</strong> Swap Phi-4-mini for Llama, Mistral, or whatever comes next — just change the Ollama model.</li></ul><p>For an enterprise that cares about data sovereignty, this trade-off is worth every extra second of processing time.</p><h3>Agent Bob in the Dark: Air-Gapped Environments</h3><p>Here’s something most AI articles won’t tell you: some of the organisations that need AI the most are the ones that can’t touch the internet.</p><p>Defence contractors. Government agencies. Critical national infrastructure. Financial institutions with regulatory constraints. Healthcare systems handling patient data. These environments operate behind air gaps — networks with zero connectivity to the outside world. No cloud APIs. No SaaS subscriptions. No “just call the OpenAI endpoint.”</p><p>For these organisations, the conversation about AI usually ends before it starts. “We can’t send data to a third-party API” is the full stop that kills every initiative.</p><p>Agent Bob was born in this exact scenario. The entire stack was deployed via USB drive. Every component — the .NET SDK, Ollama, the Phi-4-mini model weights, NuGet packages, even the ASP.NET Core hosting bundle — was downloaded on an internet-connected machine, transferred to removable media, and walked across the air gap by hand.</p><p><strong>What makes this possible:</strong></p><p><strong>Ollama runs completely offline.</strong> Once the model is loaded, it never phones home. There’s no telemetry, no licence check, no update ping. It runs on localhost and that’s that.</p><p><strong>Phi-4-mini is self-contained.</strong> The model weights are a single file. No external dependencies at runtime. No tokeniser downloads. No surprise network calls.</p><p><strong>The .NET API is a standard IIS application.</strong> Windows Server, IIS, .NET — technologies that every air-gapped environment already knows how to operate, patch, and support. No exotic container runtimes. No Kubernetes. No Docker. Just an application pool and a web.config.</p><p><strong>SQL Server is already there.</strong> Air-gapped organisations typically run SQL Server for their enterprise applications. Agent Bob connects to whatever databases already exist using Windows Authentication. No new infrastructure required.</p><p><strong>The deployment checklist for an air-gapped environment:</strong></p><ol><li>Download everything on an internet-connected machine</li><li>Transfer to USB/removable media</li><li>Install .NET SDK and hosting bundle</li><li>Install Ollama and load the model</li><li>Deploy the API to IIS</li><li>Configure firewall rules between VMs</li><li>Register SmartObjects in K2 using the Swagger files</li><li>Deploy the chat control</li></ol><p>No internet required at any point during operation. No licence servers to reach. No cloud dependencies hiding in the stack.</p><p><strong>The update story is equally simple.</strong> Want a newer model? Download it externally, transfer via USB, run ollama create on the server. Want to update the API? Build it externally, publish the binaries, copy them across. The air gap is never compromised.</p><p>This is the real advantage of running a small, local model over a cloud API. It’s not just about data sovereignty — it’s about operating in environments where connectivity isn’t an option. Agent Bob doesn’t need the internet. He never did.</p><p>For organisations stuck behind air gaps watching the AI revolution from the outside, the message is simple: you’re not locked out. The tools exist. The models are small enough. And a USB drive is all the bandwidth you need.</p><h3>Try It Yourself</h3><p>The entire stack runs on a single Windows Server VM with 16GB RAM and no GPU. The .NET API is a standard ASP.NET Core project. The K2 integration uses off-the-shelf REST broker functionality with carefully crafted Swagger definitions.</p><p>Agent Bob isn’t a product — he’s a pattern. A proof that you can bring genuine AI capabilities into legacy enterprise platforms without ripping everything out and starting over.</p><p>And he’s just getting started.</p><p><em>Agent Bob was built using Microsoft Phi-4-mini via Ollama, .NET 8, IIS, K2 SmartForms, and an unreasonable amount of patience with Swagger files.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cda730a6a7d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Built a London Underground Map for My SQL Server]]></title>
            <link>https://medium.com/@simon_82928/i-built-a-london-underground-map-for-my-sql-server-a6a0824f4298?source=rss-81f7f203eb4f------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6a0824f4298</guid>
            <category><![CDATA[database-administration]]></category>
            <category><![CDATA[sql-management-studio]]></category>
            <category><![CDATA[sql-profile]]></category>
            <category><![CDATA[sql-reporting]]></category>
            <category><![CDATA[sql-server]]></category>
            <dc:creator><![CDATA[Simon]]></dc:creator>
            <pubDate>Mon, 23 Mar 2026 15:58:50 GMT</pubDate>
            <atom:updated>2026-03-23T15:58:50.249Z</atom:updated>
            <content:encoded><![CDATA[<p><em>What happens when a database nerd decides that sp_who2 is just not dramatic enough</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qpFNI7Qmbtzd5lbTNkd9vA.png" /></figure><p>You know that thing where you open Task Manager just to watch the CPU graph? <em>Just me? OK.</em></p><p>I’ll be honest — this isn’t even my first offence. I already built <a href="https://medium.com/@simon_82928/i-gave-our-k2-workflows-tiny-legs-22250b7e4e0f"><strong>Workflow</strong></a><strong> World</strong>, a real-time isometric office simulation where K2 workflow process instances walk around as animated stick-figure characters in a Theme Hospital-style office. I spent an embarrassing amount of time just… <em>watching little people carry data between workflow activities.</em> So when I started thinking about SQL Server monitoring, “make it watchable” wasn’t a nice-to-have. It was the whole point.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*xyITd92D8eWfYOUhjCFjvA.gif" /></figure><p>So I built <strong>Data Underground</strong> — a real-time London Underground-style metro map for SQL Server traffic. Every database is a line. Every table, view, and stored procedure is a station. Every active query is a train. People board when data is being read. People get off when data is being written.</p><p><em>It’s ridiculous.</em> It’s also genuinely useful. Let me show you how it works.</p><h3>The Idea: What If sp_who2 Were a Tube Map?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rP9xJVu6XehBd1YYnzM-nA.png" /></figure><p>The core insight is that SQL Server activity already looks like a metro network if you squint at it right:</p><p>• <strong>Databases</strong> are parallel lines running across the city</p><p>• <strong>Tables, views, and stored procs</strong> are stations — places data stops, gets picked up, gets dropped off</p><p>• <strong>Active queries</strong> are trains in motion — SELECT trains run right-to-left (pulling data), write trains run left-to-right (pushing data)</p><p>• <strong>Logical reads</strong> are passengers — a query reading 50,000 rows gets a fuller train than one reading 10</p><ul><li><strong>Blocked sessions</strong> are trains stuck at a red signal</li><li><strong>Deadlocks</strong> — two trains that have somehow ended up facing each other in the same tunnel</li></ul><p>The whole thing polls three SQL Server DMVs every few seconds and renders the result as an animated canvas. The backend is ASP.NET Core. The frontend is a single HTML file with about 1,200 lines of canvas-drawing JavaScript.</p><h3>The Architecture (Blessedly Simple)</h3><p>The project has almost no moving parts:</p><pre>SqlMetro/<br>├── Program.cs                  ← 30 lines of minimal API<br>├── appsettings.json            ← connection string + config<br>├── Models/Models.cs            ← all C# data classes<br>├── Services/SqlServerService.cs ← all the DMV queries<br>└── wwwroot/index.html          ← entire frontend, one file</pre><p>The backend exposes exactly two endpoints:</p><pre>app.MapGet(&quot;/api/snapshot&quot;, async (CancellationToken ct) =&gt;<br>{<br>    var snap = await sqlSvc.GetSnapshotAsync(ct);<br>    return Results.Json(snap);<br>});<br> <br>app.MapGet(&quot;/api/health&quot;, async (CancellationToken ct) =&gt;<br>{<br>    var snap = await sqlSvc.GetSnapshotAsync(ct);<br>    return snap.IsConnected<br>        ? Results.Ok(new { status = &quot;ok&quot;, server = snap.ServerName })<br>        : Results.Problem(snap.ErrorMessage);<br>});</pre><p>That’s the entire API. The frontend polls /api/snapshot every 3 seconds and renders whatever comes back.</p><h3>The DMV Queries: Six Parallel Trips into the Engine Room</h3><p>Every poll fires six queries simultaneously on separate connections. Here’s what we’re asking SQL Server:</p><h3>1. Active Requests — the trains</h3><p>This is the centrepiece. We join dm_exec_requests with dm_exec_sessions and cross-apply dm_exec_sql_text to get the actual SQL being executed:</p><pre>SELECT<br>    r.session_id                AS SessionId,<br>    r.blocking_session_id       AS BlockingSessionId,<br>    DB_NAME(r.database_id)      AS DatabaseName,<br>    r.status                    AS Status,<br>    r.command                   AS Command,<br>    r.wait_type                 AS WaitType,<br>    r.logical_reads             AS LogicalReads,<br>    r.total_elapsed_time        AS ElapsedMs,<br>    s.login_name                AS LoginName,<br>    OBJECT_NAME(st.objectid, r.database_id) AS ObjectName,<br>    SUBSTRING(st.text,<br>        (r.statement_start_offset / 2) + 1,<br>        ((CASE r.statement_end_offset<br>            WHEN -1 THEN DATALENGTH(st.text)<br>            ELSE r.statement_end_offset<br>          END - r.statement_start_offset) / 2) + 1)  AS SqlText<br>FROM sys.dm_exec_requests r<br>JOIN sys.dm_exec_sessions s ON s.session_id = r.session_id<br>CROSS APPLY sys.dm_exec_sql_text(r.sql_handle) st<br>WHERE r.session_id &lt;&gt; @@SPID<br>  AND s.is_user_process = 1<br>ORDER BY r.total_elapsed_time DESC;</pre><p>The SUBSTRING / statement_start_offset magic extracts the <em>specific statement</em> being executed inside a batch — not the whole stored procedure, just the current line. This is why you see UPDATE Orders SET Status = 2 WHERE… rather than the entire usp_ProcessOrder body.</p><h3>2. Idle Blockers — the sneakiest problem</h3><p>Here’s one most monitoring tools miss. A session can be blocking dozens of others while not having any active request at all — it opened a transaction, ran some updates, and then just… sat there. Maybe a developer left a query window open. Maybe an application isn’t calling COMMIT properly.</p><pre>-- Sessions blocking others but NOT in dm_exec_requests<br>SELECT DISTINCT<br>    r.blocking_session_id        AS SessionId,<br>    s.login_name                 AS LoginName,<br>    s.program_name               AS ProgramName,<br>    SUBSTRING(t.text, 1, 500)    AS SqlText<br>FROM sys.dm_exec_requests r<br>JOIN sys.dm_exec_sessions s<br>    ON s.session_id = r.blocking_session_id<br>LEFT JOIN sys.dm_exec_connections c<br>    ON c.session_id = s.session_id<br>OUTER APPLY sys.dm_exec_sql_text(c.most_recent_sql_handle) t<br>WHERE r.blocking_session_id &gt; 0<br>  AND r.blocking_session_id NOT IN (<br>      SELECT session_id FROM sys.dm_exec_requests<br>      WHERE session_id &lt;&gt; @@SPID<br>  );</pre><p>The WHERE clause is the key: sessions that are causing blocking but don’t appear in dm_exec_requests themselves. On the map these show up as “ghost trains” — they have the 🔒 lock icon, and a red dashed chain shows every session they’re holding hostage.</p><h3>3. Deadlock Events — from the XE ring buffer</h3><p>SQL Server logs deadlock information into the system_health Extended Events session as XML. We can read it directly:</p><pre>SELECT TOP 10<br>xdr.value(&#39;@timestamp&#39;,&#39;datetime2&#39;) AS DetectedAt,<br>xdr.query(&#39;.&#39;) AS DeadlockXml<br>FROM (<br>SELECT CAST(target_data AS xml) AS TargetData<br>FROM sys.dm_xe_session_targets st<br>JOIN sys.dm_xe_sessions s<br>ON s.address = st.event_session_address<br>WHERE s.name = &#39;system_health&#39;<br>AND st.target_name = &#39;ring_buffer&#39;<br>) AS d<br>CROSS APPLY TargetData.nodes(<br>&#39;RingBufferTarget/event[@name=&quot;xml_deadlock_report&quot;]&#39;<br>) AS xdr(xdr)<br>ORDER BY 1 DESC;</pre><p>The C# side parses the XML with System.Xml.Linq to extract victim SPIDs. Those sessions get a 💀 badge on their trains in the UI. Deadlocks from the last 5 minutes count.</p><h3>Mapping Queries to Trains: The C# Side</h3><p>Each ActiveRequest becomes a MetroTrain. The key calculation is passenger count — we log-scale logical reads so heavy analytical queries don’t visually dominate the map:</p><pre>private MetroTrain BuildTrain(ActiveRequest r) =&gt; new()<br>{<br>Id = $&quot;s{r.SessionId}&quot;,<br>DatabaseId = r.DatabaseName ?? &quot;unknown&quot;,<br>Op = ParseOp(r.Command),<br>IsBlocked = r.BlockingSessionId.GetValueOrDefault() &gt; 0,<br>// Log-scale logical reads into 1–12 passenger dots<br>Passengers = (int)Math.Clamp(<br>Math.Log10(Math.Max(r.LogicalReads, 1) + 1) * 3,<br>1, 12),<br>ElapsedMs = r.ElapsedMs,<br>SqlText = r.SqlText?.Length &gt; 2000<br>? r.SqlText[..1997] + &quot;…&quot;<br>: r.SqlText,<br>};</pre><p>The Op enum drives both the train colour and direction:</p><pre>private static TrainOp ParseOp(string? command) =&gt;<br>(command?.Trim().ToUpperInvariant() ?? &quot;&quot;) switch<br>{<br>var c when c.StartsWith(&quot;SELECT&quot;) =&gt; TrainOp.SELECT, // ← hollow blue<br>var c when c.StartsWith(&quot;INSERT&quot;) =&gt; TrainOp.INSERT, // → solid green<br>var c when c.StartsWith(&quot;UPDATE&quot;) =&gt; TrainOp.UPDATE, // → solid amber<br>var c when c.StartsWith(&quot;DELETE&quot;) =&gt; TrainOp.DELETE, // → solid red<br>var c when c.StartsWith(&quot;EXEC&quot;) =&gt; TrainOp.EXECUTE, // → solid purple<br>_ =&gt; TrainOp.BATCH, // → solid grey<br>};</pre><p>SELECT trains are <strong>hollow outlines</strong> and travel <strong>right-to-left</strong> (pulling data toward the consumer). Write trains are <strong>solid filled</strong> and travel <strong>left-to-right</strong> (pushing data into the table). This makes the direction of data flow immediately readable.</p><h3>Detecting Blocking Chains: It’s Just a Graph Problem</h3><p>Blocking chains — where session A blocks B which blocks C — are built with a BFS from the head blocker:</p><pre>private static List&lt;BlockingChain&gt; BuildBlockingChains(<br>List&lt;ActiveRequest&gt; requests,<br>List&lt;IdleBlocker&gt; idleBlockers)<br>{<br>var blocked = new Dictionary&lt;int, List&lt;int&gt;&gt;();<br>var allBlockerIds = new HashSet&lt;int&gt;();<br>var allBlockedIds = new HashSet&lt;int&gt;();<br>foreach (var r in requests.Where(r =&gt; r.BlockingSessionId &gt; 0))<br>{<br>allBlockerIds.Add(r.BlockingSessionId!.Value);<br>allBlockedIds.Add(r.SessionId);<br>blocked.GetOrCreate(r.BlockingSessionId!.Value).Add(r.SessionId);<br>}<br>// Head blockers: cause blocking but aren&#39;t themselves blocked<br>var headBlockers = allBlockerIds.Except(allBlockedIds);<br>foreach (var hb in headBlockers)<br>{<br>var victims = new List&lt;int&gt;();<br>var queue = new Queue&lt;int&gt;([hb]);<br>while (queue.Count &gt; 0)<br>{<br>var sid = queue.Dequeue();<br>if (blocked.TryGetValue(sid, out var children))<br>foreach (var c in children)<br>{ victims.Add(c); queue.Enqueue(c); }<br>}<br>// … build BlockingChain object<br>}<br>}</pre><p>On the canvas, the head blocker gets a 🔒 hexagonal border and red dashed lines connecting it to every victim. Seeing five sessions all pointing back to one idle SSMS window is a very satisfying way to find that colleague who leaves transactions open during lunch.</p><h3>The Canvas Frontend: Drawing the Underground</h3><p>The entire frontend is a single HTML file. The render loop runs at 60fps — animation is client-side interpolation, not server-driven. The server gives us state (“Session 42 is a SELECT on HR database”); the frontend decides where that train is right now.</p><h3>Drawing a train</h3><p>SELECT trains are hollow outlines. Write trains are solid. The train width grows with passenger count:</p><pre>function drawTrain(at) {<br>const st = at.data;<br>const col = opColour(st.op);<br>const read = isRead(st.op); // SELECT = 0<br>const tw = 26 + Math.min(st.passengers, 10) * 3; // wider = more rows<br>const th = 14;<br>ctx.beginPath();<br>rrect(x - tw/2, y - th/2, tw, th, 4);<br>if (read) {<br>ctx.fillStyle = col + &quot;20&quot;; // 12% opacity fill<br>ctx.fill();<br>ctx.strokeStyle = col;<br>ctx.lineWidth = 1.5;<br>ctx.stroke(); // hollow outline only<br>} else {<br>ctx.fillStyle = col;<br>ctx.fill(); // solid - owns the data<br>}<br>}</pre><h3>Platform crowds</h3><p>When a train dwells at a station, little stick figures animate onto or off the platform. People with a ↑ arrow are waiting to board (data to be read). People stepping down are rows being written:</p><pre>function drawPerson(p) {<br>const bob = Math.sin(p.bob) * 1.3; // gentle idle sway<br>ctx.globalAlpha = Math.max(0, p.alpha);<br>ctx.fillStyle = p.col;<br>ctx.beginPath();<br>ctx.ellipse(p.x, p.y + 2 + bob, 2.5, 4.5, 0, 0, Math.PI * 2);<br>ctx.fill(); // body<br>ctx.beginPath();<br>ctx.arc(p.x, p.y - 5.5 + bob, 2.8, 0, Math.PI * 2);<br>ctx.fill(); // head<br>// boarding indicator<br>if (p.role === &quot;waiting&quot;) {<br>ctx.fillStyle = &quot;#85B7EB&quot;;<br>ctx.fillText(&quot;↑&quot;, p.x, p.y - 11 + bob);<br>}<br>}</pre><p>The bob variable makes them gently sway up and down. They fade in, linger, then fade out. It’s completely unnecessary. <em>I have no regrets.</em></p><h3>The Wait Types Panel: Your Server’s Mood Board</h3><p>The right panel shows the top wait types from dm_os_wait_stats, colour-coded by category:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VCKAPj6u3mKhjS1M5Hwt4Q.png" /></figure><p>If your top wait is LCK_M_X (exclusive lock), there’s contention — probably a blocking chain visible on the map. If it’s ASYNC_NETWORK_IO, your <em>application layer</em> is the bottleneck, not SQL Server itself.</p><h3>Running It</h3><p>Three steps:</p><p># 1. Edit appsettings.json</p><pre>{<br>&quot;ConnectionStrings&quot;: {<br>&quot;SqlServer&quot;: &quot;Server=YOURSERVER;Database=master;<br>Integrated Security=true;TrustServerCertificate=true;&quot;<br>}<br>}</pre><p># 2. Grant permission (run as sysadmin)</p><pre>GRANT VIEW SERVER STATE TO [your_login];</pre><p># 3. Run</p><pre>dotnet run</pre><p># → Browse to <a href="http://127.0.0.1:5000/">http://127.0.0.1:5000</a></p><p>The NuGet packages are Microsoft.Data.SqlClient and Dapper. That’s it — no ORMs, no message buses, no Redis, no Kubernetes operator. It’s a weekend project and I want it to actually work.</p><h3>What I Learned</h3><p>A few things surprised me building this:</p><p><em>The idle blocker query is the most valuable one. Everyone checks dm_exec_requests for slow queries. Almost nobody checks for sessions that are blocking others while not running a query. That gap is where half of production incidents live.</em></p><p>• <strong>Log-scaling logical reads was the right call. </strong>Linear scaling made heavy OLAP queries visually dominate the entire map. Log scaling means a 10-million-read query and a 1,000-read query can coexist legibly.</p><p>• <strong>Canvas is surprisingly nice for this kind of thing. </strong>A plain &lt;canvas&gt; with a 60fps RAF loop gives complete control and good performance — the whole map renders in under 2ms per frame even with 50+ trains.</p><p>• <strong>The metaphor earns its keep. </strong>I showed this to a DBA colleague who doesn’t know the codebase. Within 30 seconds she said “why is that line so much busier, and why is that station always red?” The visual encoding should make the interesting stuff jump out without needing to know what to look for.</p><p><em>The full project is on </em><a href="https://github.com/SimonAllport/Data-Underground"><em>GitHub</em></a><em>. This was built for fun and is not intended for production environments. Use at your own risk.</em></p><p><em>Requires .NET 8 and SQL Server 2016+.</em></p><p>Tags: SQL Server · C# · .NET · Database Performance · Data Visualisation</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6a0824f4298" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Gave Our K2 Workflows Tiny Legs]]></title>
            <link>https://medium.com/@simon_82928/i-gave-our-k2-workflows-tiny-legs-22250b7e4e0f?source=rss-81f7f203eb4f------2</link>
            <guid isPermaLink="false">https://medium.com/p/22250b7e4e0f</guid>
            <category><![CDATA[reporting]]></category>
            <category><![CDATA[workflow-automation]]></category>
            <category><![CDATA[fun]]></category>
            <category><![CDATA[nintex]]></category>
            <category><![CDATA[sim]]></category>
            <dc:creator><![CDATA[Simon]]></dc:creator>
            <pubDate>Thu, 19 Mar 2026 16:51:51 GMT</pubDate>
            <atom:updated>2026-03-19T16:51:51.052Z</atom:updated>
            <content:encoded><![CDATA[<p>Process instances as animated office workers. Bottlenecks as crowded rooms. Errors as ambulances. Yes, really.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*cREj7KVZGVZXmLSgqaohiA.gif" /></figure><p>You know the K2 management portal. You’ve stared at that process instances grid more times than you care to admit. Folio, originator, status, current activity, started date. Scroll. Filter. Squint. Try to figure out whether the twelve instances sitting in “Line Manager Approval” since Monday are a problem or just Tuesday.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f4EmYfFRZJGHE6SmXPYUvg.png" /></figure><p>I got tired of squinting.</p><p>Workflow World is what happened instead. It takes your live K2 process instances and renders them as animated characters walking around an isometric office floor plan. Each activity is a room. Each instance is a person. When a worklist item sits untouched for 24 hours, the character lies down and falls asleep. When an instance errors, an ambulance shows up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fTKoKe2XlhPD4KOrwkSPOQ.png" /></figure><p>I’m aware this is not a normal thing to build. I built it anyway.</p><h3>The Premise</h3><p>The K2 data model maps to spatial metaphors more naturally than you’d expect:</p><ul><li><strong>Process definition → office floor plan.</strong> Activities become rooms arranged along a central corridor.</li><li><strong>Process instance → animated character.</strong> Deterministic appearance from the process instance ID — same instance, same face, every time.</li><li><strong>Worklist item → person waiting at a desk.</strong> Their assigned users appear as a speech bubble over their head.</li><li><strong>IPC / subworkflow activity → teleporter room.</strong> Complete with beam-in particle effects, because of course.</li><li><strong>Error log entry → sick green character in the error corner.</strong> Stink lines included.</li><li><strong>Completed instance → confetti burst, wave, fade out.</strong></li></ul><p>The goal wasn’t to replace the admin console. It was to answer a different question: <em>at a glance, what’s the health of this workflow right now?</em></p><h3>The Stack</h3><p>Backend is .NET Framework 4.8 — net48 not net8, because the K2 Management SDK is what it is. OWIN self-host, Web API 2, SignalR 2. I’ve wrapped it in Microsoft.Extensions.* for DI, configuration, and logging, which at least makes it feel like this decade.</p><p>Frontend is React 18 / TypeScript / Vite, with a hand-rolled SignalR 2 long-polling client. No jQuery. No @microsoft/signalr (that&#39;s SignalR Core). The classic SignalR 2 negotiate/connect/start/poll protocol, done in vanilla fetch.</p><pre>React SPA (5173) ←─ SignalR long-poll ─→ .NET API (9090) ←─ K2 SDK ─→ K2 (5252)</pre><p>The backend polls K2 on a timer, diffs against the previous state, and pushes only changes. This matters — K2 has no webhooks, so the alternative is every browser tab independently hammering the management API. One server-side poll cycle, broadcast to N clients.</p><p>One SignalR gotcha worth calling out: Clients.Group() called from outside the hub context in OWIN self-host doesn&#39;t reliably deliver messages. I ended up maintaining my own ConcurrentDictionary&lt;workflowId, HashSet&lt;connectionId&gt;&gt; and using Clients.Clients(connectionIds) instead. Classic SignalR 2 adventure.</p><h3>The Layout Engine</h3><p>K2 workflows are abstract graphs. There’s no spatial information in a process definition — just activity names, event types, and connections. I needed to synthesise a floor plan from that.</p><p>The engine places activities alternately above and below a central corridor, with entrance and exit zones at the ends. Error and rejected zones sit off to the side, connected by branching tile paths. Each room is an isometric diamond: TILE_W = 40px, TILE_H = 20px, walls 22px high, with checkerboard floor tiles and a door gap cut into the wall face closest to the corridor.</p><p>Character movement is the fun part. When K2 reports an instance has moved to a new activity, the corresponding character doesn’t teleport — it walks a multi-phase route:</p><ol><li><strong>to-door</strong> — walk to the current room’s door</li><li><strong>corridor</strong> — follow computed waypoints: outside door → corridor centre at source X → corridor centre at destination X → outside destination door</li><li><strong>enter-room</strong> — walk through the door to room centre</li><li><strong>to-position</strong> — walk to a randomised spot within the room diamond</li></ol><p>Cutting through walls is forbidden. The corridor waypoints exist specifically to prevent characters taking diagonal shortcuts through solid geometry.</p><h3>The Characters</h3><p>Appearance is fully deterministic. A seeded sine function maps each process instance ID to a skin tone (6 options), shirt colour (12 options), and personality trait. Impatient, relaxed, social, anxious, or normal. The same instance ID always produces the same character — so if you see someone familiar pacing in the Approval room, that’s the same instance you were watching yesterday.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FLDTyt3q5fGk2tiEkKqSlw.png" /></figure><p>Traits drive behaviour. <strong>Impatient</strong> characters tap their foot and check their watch compulsively. <strong>Relaxed</strong> characters wander slowly with coffee. <strong>Social</strong> characters try to start conversations with nearby peers. <strong>Anxious</strong> characters fidget — and visibly panic when walking toward the error zone, which they appear to sense in advance.</p><p>The tiredness system started as a joke and became genuinely useful. Wait time in the system drives a tiredness score. After two hours: drooping eyelids. After eight hours: dark circles. After twenty-four: they lie down. You can spot a stuck instance from across the canvas just by how wrecked it looks, without checking a timestamp.</p><h3>The Bits That Got Out of Hand</h3><p><strong>The taxi.</strong> Stopping an instance via the right-click menu triggers a full taxi animation. An isometric cab drives along the corridor, parks at the room’s door, the character boards with a wave, and nearby colleagues wave back. Then the taxi drives away and the instance is gone. I cannot justify this on any productivity grounds whatsoever.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*8RzkaQ1cBtizCNLtprdv1Q.gif" /></figure><p><strong>The ambulance.</strong> When an instance transitions into an error state, an ambulance drives to the character’s door, loads them up, and drives to the error-corner room. The retry action makes the character walk hopefully back toward the active area. If the K2 retry fails, the ambulance comes back. This is both a useful status indicator and deeply sad.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J3fSYrf1Mzwt3uN_bZs58g.png" /></figure><p><strong>The teleporter.</strong> IPC activities get their own room type with a transporter-pad floor, rising particle beam, shimmer effect while the subworkflow is running, and a beam-out when the IPC resolves. It turns out “this instance is waiting on a called subworkflow” is a confusing concept in a table and a completely obvious one when there’s a character standing on a glowing pad.</p><h3>What It Actually Tells You</h3><p>I showed this to a non-technical colleague before explaining what they were looking at. Within about twenty seconds: <em>“That room’s really busy, is something wrong there?”</em></p><p>It was a bottleneck we’d been monitoring for two days. Twelve instances, one approver, average wait time over an hour. The instances grid had communicated that as twelve rows with similar timestamps. The crowded office room communicated it immediately.</p><p>Bottleneck detection runs server-side: congestion ratio (population / capacity) ≥ 0.9 and average dwell ≥ 5 minutes triggers a SignalR push to all subscribers. The room gets a pulsing red border. Simple threshold, but in practice it fires at exactly the right moments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*TsCYMteUjTgd-ybcrb6Ejg.gif" /></figure><p>The day/night cycle is entirely unnecessary and I refuse to remove it. The visualisation reads actual wall-clock time and adjusts lighting accordingly — blue overlay at night, warm cast at dawn and dusk, visible stars after midnight. Instances that have been running since yesterday look tired even before the tiredness system kicks in. There’s something grimly honest about an instance that started at 9am on Monday still trudging around the office at 11pm on Wednesday.</p><h3>Caveats</h3><p>This is a proof of concept and is labelled as such. No persistent storage. No distributed deployment. Activity discovery is heuristic — the engine infers which activities exist from a combination of GetProcessActivities, worklist items, and error logs, so a brand-new workflow with zero historical instances will look sparse until it accumulates some data.</p><p>The K2 definition cache is 30 minutes. If someone renames an activity between polls, the floor plan won’t update immediately. This is a known limitation and not something I’m losing sleep over.</p><h3>The Code</h3><p>If you’re working with K2 and want to run this against your own environment — or just want to read the isometric tile engine or the SignalR polling logic — it’s all on GitHub:</p><p><a href="https://github.com/SimonAllport/WorkflowWorld">https://github.com/SimonAllport/WorkflowWorld</a></p><p>You’ll need the K2 SDK DLLs from your K2 server installation (drop them in lib/), update appsettings.json with your server host and port, and run both the .NET backend and the Vite dev server simultaneously. The README has the full setup.</p><p>If you’ve built something similar for K2, Nintex, or any other workflow platform — or if you have opinions on the ambulance — I want to hear about it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22250b7e4e0f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>