Think Build Implement Repeat
London, UK +44 7367 067226
WhatsApp FOLLOW f in X
  1. Home
  2. Blog
  3. Every Law Firm Wanted Its Own Workflow. Now Our Code Is Full of Special Cases. What Now?
Problems We Solve

Every Law Firm Wanted Its Own Workflow. Now Our Code Is Full of Special Cases. What Now?

Legal tech startups that say yes to every firm's workflow end up with code full of firm-specific cases. We build a configuration model to replace them.

Updated 3 min readBy SpiderHunts Technologies

Free estimateNo obligation

Get a free estimate

Tell us what you need. A senior engineer reads every enquiry.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →

Quick answer — TL;DR

Customisation sprawl happens when each firm's matter types, approval steps and document rules are added as code, often as checks on the firm's ID. We build a configuration model that expresses what firms really need to vary, move existing special cases into it one by one with tests proving nothing changed, and give your team an admin screen so new firms are set up without developers.

A codebase that knows every firm by name

Your first firms each had a reasonable request. One needed an extra approval step for a certain matter type. One wanted a different checklist for residential and commercial work. One needed certain documents to be signed off by a partner before going to the client. Your developers added each as a small change: if firm is X, do this.

Two years later there are dozens of these checks. A change to the approval flow has to be tested against every firm's variation. A bug fix for one firm breaks another. New developers are afraid to touch the workflow code, and onboarding a new firm with a slightly different process takes a developer and a release.

How the special cases pile up

Law firms differ in how they run matters, even within the same practice area. Their risk and supervision rules, matter types, approval steps and client requirements vary, and they expect their software to follow them. Saying yes was right commercially. Putting each yes into code is what caused the problem.

  • There was no configuration model, so code was the only place to put firm-specific rules.
  • Each request was built under deadline, in the quickest way.
  • Similar requests from different firms were built differently.
  • Nobody kept a list of which firms have which variations.
  • Tests cover the standard flow, not every firm's version of it.

What the sprawl costs

Development slows as every change has to account for every firm. Bugs appear in firms nobody was thinking about, sometimes in workflows that matter for supervision or client care. Onboarding new firms needs engineers. And the product becomes harder to explain: sales cannot say what the product does, because it does something slightly different everywhere.

There is a risk angle too. If a firm's approval step is silently skipped because of a code change aimed at another firm, the firm's own supervision process has failed, and your product was the cause.

How we replace special cases with configuration

What we build turns firm variations into settings, carefully, without changing what any firm experiences.

  1. An inventory of every firm-specific check in the code: what it does, which firm it serves, and whether the firm still relies on it.
  2. A configuration model covering the kinds of variation firms actually need: matter types, workflow steps and their order, approval rules by role, required documents, checklists and notification rules.
  3. Characterisation tests that record how each firm's workflow behaves today, so the move to configuration can be proved to change nothing.
  4. Migration of each special case into configuration, one at a time, with its tests passing before the code check is removed.
  5. An admin screen for your onboarding and support team to set up and change firm configuration, with validation to stop impossible setups and a history of changes.
  6. A rule for future requests: if a firm's need fits the configuration model, it is set up; if not, the model is extended deliberately rather than a special case added.
Firm variationBeforeAfter
Extra approval for a matter typeCode check on firm IDWorkflow step in configuration
Different checklists by work typeSeparate code pathsChecklist per matter type
Partner sign-off before sendingHard-coded ruleApproval rule by role
Client-specific document setCustom codeRequired documents setting
New firm with small differencesDeveloper and a releaseAdmin screen setup

A new firm with its own approval rule

A new firm needs a second fee earner to check certain documents before they go to the client. Your onboarding lead opens the admin screen, adds an approval step for that document type, requires a second fee earner, and saves. The validation confirms it fits the workflow. No developer is involved, no release is needed, and when your team changes the approval flow next month, the tests confirm this firm's rule still works along with everyone else's.

Is your codebase full of firm names?

  • Your code checks firm IDs to decide what the workflow does.
  • Onboarding a new firm with small differences needs a developer.
  • Fixes for one firm have broken another.
  • Nobody has a complete list of each firm's variations.
  • Developers avoid changing the workflow code.

FAQ

Frequently asked questions

The questions readers ask us after this guide.

Still have a question?

Ask us directly — a senior engineer will get back to you.

Ask about your project

Will firms notice anything during the migration?

They should not. Tests record each firm's current behaviour and must pass before each special case is removed.

What if a firm's variation does not fit the model?

We either extend the model to cover it or keep it as a clearly documented exception, and tell you which is sensible.

Can firms change their own configuration?

If you want them to, for low-risk settings. Many startups keep workflow changes with their own team.

What do you need from us?

Access to your code and tests, and time with the people who remember why each special case was added.

Keep reading

More on Problems We Solve

Start here

Tell us what is slowing your legal tech product inside law firms

Describe what your product does for law firms, which systems it has to work with and where deals or rollouts get stuck: security reviews, integrations, adoption or support. We will tell you what we would build and what we would not, and if the answer is a document or a process rather than software, we will say so.

  1. You tell us what you needTwo minutes on the form, or a message on WhatsApp.
  2. A senior engineer reviews itAnd comes back with questions, a realistic range and an honest view on fit.
  3. Free 30-minute scoping callWe talk through scope, options and a realistic estimate — with no obligation.
Free estimateNo obligation

Talk to someone who builds this

Send a short brief and we will come back with an honest view and a realistic range.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →