By Patrick McCurley

Claimit Workflow Visualizer

By Patrick McCurley · Created Mar 14, 2026 public

The Workflow Visualizer is a developer intelligence tool that automatically scans Claimit's Temporal workflow codebase and produces interactive visual documentation. It bridges the gap between raw C# workflow code and business-understandable flow diagrams — keeping documentation alive as the code evolves.

Why It Exists

Claimit's claim processing engine runs on Temporal, with courier-specific workflows (DPD, Asendia, Royal Mail) that each contain hundreds of lines of orchestration logic — activity calls, decision branches, reminder loops, timer waits, and signal handlers. Understanding how a claim flows through the system previously meant reading the code directly.

The Workflow Visualizer solves three problems:

How It Works

The backend runs on Bun with a Hono server. On startup it scans the entire backend/Temporal directory using tree-sitter for C# AST parsing. The frontend connects via REST API and renders everything interactively.

Key Features

Workflow Explorer

The left sidebar presents all Temporal workflows in a searchable, categorized tree — grouped by courier (DPD, Asendia, Royal Mail) and function (Email Processing, Claim Submission, KPI). Selecting a workflow loads its full metadata: signals, queries, activities called, child workflows, and input/output types.

Interactive Flow Diagrams

Each workflow gets a visual business flow diagram showing:

Diagrams are rendered with ReactFlow, support zoom/pan, and persist manual layout adjustments in a local cache.

Activity Catalog

The right palette lists all 100+ activities organized into a categorized tree:

Category Examples
Email Processing / DPD SearchDPDEmails, ExtractInvestigationDays, GetDPDInvestigatingClaims
Email Processing / Royal Mail SearchRoyalMailEmails, ClassifyRoyalMailResponse
Email Submission / EVRi SendEVRiClaimEmail, BuildEVRiEmailBody
Claim Submission / UPS SubmitUPSClaimForm, GetUPSPortalCredentials
KPI & Reporting CalculateClaimMetrics, GenerateKPIReport
Infrastructure SlackNotification, RetryWithBackoff

Clicking any activity opens a detail panel showing its input/output type schemas, source file location, and which workflows use it.

Anatomy View

For courier workflows that use the template method pattern (a base class with virtual hooks), the Anatomy tab breaks down:

This is particularly useful for understanding how DPD and Asendia workflows customize the shared claim processing pipeline.

Architecture

Who Benefits