Three questions before modelling a workflow
What I learned moving a Plan–Do–Check–Act process out of Excel: states, responsibilities and documents each deserve their own answer — before the first line of code.
- Type
- Article
- Published
- December 4, 2026
When a process lives in Excel files, the rows are easy to see and the decisions behind them are not. During my final-year internship, I turned a Plan–Do–Check–Act improvement process into an intranet web application. Requests between departments — several hundred a month, and growing — were spread across Excel files and habits specific to each department, and each one read the workflow slightly differently.
The hardest questions had nothing to do with the framework. These are the three I would ask again before modelling any workflow.
1. What does a state tell the next person?
A state is only useful if someone can decide what to do next by reading it. In the Excel files, the same stage did not always mean the same thing to every department.
So before writing a single transition, I built a simple matrix: for each state, what the requesting department and the receiving department are responsible for, which actions are possible and which validations are needed. I checked it with my supervisor and the people who run the process. If two departments answer differently, you have found two states — or a misunderstanding worth fixing before it is encoded in software.
The matrix then became the rule the application enforces in two places: the interface only offers the actions that make sense, and the API rejects the others. An action reserved for the receiving department is never offered to the requesting one, not even by calling the API directly.
2. Who owns the request, and who does the work?
A request has an owner, but the work is often done by other people, sometimes in another department. Squeezing everything into one status field forces a single answer to two questions: “is this request moving?” and “is my part done?”
Modelling tasks separately from the request solved this. The request keeps its owner and its place in the cycle; each task has its own assignee and completion. The same care went into the data: statuses, categories, comments and history got their own tables instead of free text. It took longer to build, but it kept values consistent and filters reliable. It paid off when managers asked for indicators: the history of every state change made it possible to track delays and blockages, not just the current status.
3. Where should the documents live?
Requests come with evidence: reports, photos, measurements. The easy option is to store the files in the application database. But the company already had a document system, with its own permissions and retention rules, and a second store would quickly have become the unofficial one.
The application therefore stores documents in SharePoint through Microsoft Graph and only keeps the link between a request and its files. That choice raised a question I had not expected. With up to 50 MB of attachments, uploading them during the save took around ten seconds. I moved the upload to a background job with Hangfire: the request is created in about a second, and the files follow. It also created a new intermediate state — a request whose attachments are not there yet — so the interface shows that they are loading, and a failed upload can be retried from the request. Deciding what the workflow owns, and what it only references, shaped the integration more than any technical choice.
The common thread
None of these questions is about code. They are about making implicit agreements explicit, with the people who carry out the process, and checking them early: the matrix, the data model and a demonstration to future users all led to changes before they became expensive. Answering them first made the implementation straightforward; skipping them would have produced a faster Excel file with the same ambiguities.