Parsware
All articles

Running processes

How is a process doing?

A run's page says where one request has got to. A process's Insights screen says what keeps happening: how many runs got through, how long work waits before anybody picks it up, where runs stall, and how decisions usually go. Trying it, we fixed two things: decisions are named by their button, and the people view names people.

The Insights screen of Two-Step Change Approval: 10 started, 8 finished, 2 running now, and Where work waits by step, next to the title "How is a process doing?"

Where has this request got to? is a question about one run, and its page answers it. Approvals take forever is a different complaint. It's about every run, and opening them one at a time won't tell you why.

Each process has an Insights screen for that. It says how many runs got through, how long work waits before somebody picks it up, which runs are stuck, and how decisions usually go. We used the Two-Step Record Approval sample from samples/solutions/bpms-two-step-record-approval, the same process as in A two-step approval, after ten change requests had been through it. Robin Park reviews them and Sam Taylor approves them.

Where it is

In the maker portal, open the solution, then Processes, the process, and Insights on the rail, under Runs:

The Insights screen of Two-Step Change Approval: the rail with Flow, Coforms, Runs and Insights; 10 Started, 8 Finished, 2 Running now, 5m Usual time end to end; then Where work waits, Where runs stall and How decisions go

Everything on the screen is about a period, picked at the top right: the last 7, 30 or 90 days.

The four numbers at the top

How many runs started in the period, how many finished, how many are running now, and how long a run usually takes end to end.

Started and finished don't have to match. A run that started last month and finished this week counts as finished only. That's the honest answer to how much did we get through.

Where work waits

The most useful part of the screen. One row per step:

Where work waits: Review and correct usually waits 1m, the slowest tenth 5m, usually takes 9s, 2 open now since 08:09, 6 done; Approve the change usually waits 22s, takes 8s, 6 done

It keeps apart two numbers most reports add together:

  • Usually waits is the time from a task appearing in somebody's list to somebody picking it up.
  • Usually takes is the time from picking it up to finishing it.

They need opposite fixes. A step that's picked up at once and then takes four hours is a hard step: a long form, a report to read, a decision that needs thought. Simplify it or split it. A step that sits for two days and is then done in ten minutes is a busy or absent person. Widen who it goes to, add a deadline, or find out who's away. One how long did it take number would call both of them slow and point at neither fix.

Slowest tenth waits is how bad the tail is: the wait that one task in ten is slower than. These are medians, not averages. One approval left over a holiday weekend moves an average far enough to make a healthy step look broken.

Beside them: how many are open now, since when the oldest open one has waited, how many are done, how many ran late, and how many were escalated. Our two open tasks are the two requests we'd just sent; Robin hasn't looked at them yet.

Deadlines show here too

The Deadlines and Timers sample, from Deadlines and timers, has a support ticket that has to be answered within the hour:

Where work waits for Ticket SLA: First response, 2 late and 2 escalated; Still needed?, 1 late

Late counts the tasks still open when their deadline passed. Escalated counts the ones that were also offered to somebody further up because of it.

People instead of steps

The screen opens grouped by step, and it names nobody. A step that waits three days is something you can fix, and finding that out shouldn't hand you a ranking of your colleagues.

When you need it, tick Show people instead of steps: somebody is away, a queue is stuck on one person, work is unevenly spread. The same columns, asked of people:

Show people instead of steps ticked: Change Reviewer (par_change_reviewer), 2 open now; Change Approver (par_change_approver); and Robin Park, with nothing done

A row is whoever the task was offered to. This sample offers each step to a role, so most rows are roles. Robin Park has a row of their own because in Watch a process run we handed one task on to them by name. A task offered to four people appears under all four, because it was in four lists.

That's new. Ticking the box used to show every row with a step's name, and the people it was meant to name were references like role:par_change_reviewer. Each row now says who it is, with the names the run page and the task list use.

Where runs stall

Runs that are still going with nobody holding them and no timer to wake them: a step that found nobody to go to, or a branch where no condition was true. Each row says the step it stopped at and why, and its date opens the run.

Where runs stall: Nothing is stalled.

Ours is empty, which is what you want. A run waiting on a timer isn't listed. A process told to wait a day looks exactly like a stuck one from the outside, and a list that called it broken every night would soon be ignored.

How decisions go

Which button each step ends by, and how often:

How decisions go: Review and correct, Send for approval, 6; Approve the change, Approve, 5; Approve the change, Reject, 1

This is what answers how often does this get turned down. One in six, here.

By the clock says how many of those the step's deadline decided rather than a person. In the Deadlines and Timers sample, Still needed? closes the ticket by itself when nobody answers:

How decisions go for Ticket SLA: Still needed?, Close it, 1, by the clock 1; First response, Send the reply, 1

Rejected because somebody decided to and rejected because nobody looked at it in three days are the same outcome and completely different facts. A step with a high number here needs a longer deadline or more people, not a different decision.

That's new too. This table used to show the outcome's internal name, sent_for_approval. It now shows the words on the button the person pressed, as the run page does.

From a number to a change

Insights is only worth opening if it leads to a change. The common findings, and what usually fixes each:

Insights shows It usually means Try
A step that waits long, then is done fast The people it goes to are busy, away, or don't see it Offer it to a wider role; add a deadline that escalates; check Show people for one person holding the queue
A step that is picked up fast, then takes long The decision is hard, or the form makes it so Show the person a report with what they need; shorten the coform; split the step
A long slowest tenth with a short usual wait Most work flows, a few get forgotten A deadline, so the forgotten ones surface
Many late tasks on one step The deadline is unrealistic, or nobody owns the step Lengthen it, or name a role that will act
Runs in Where runs stall Nobody to assign to, or no branch condition true Add the missing Process Roles row; fix the branch's conditions
One button chosen far more than another Either a healthy process, or a step that never really decides If it's always Approve, ask whether the step is needed at all

The last row is a good question to ask of any approval every few months. A step that approves 99 runs in 100 costs a person's time on every run; a deadline that decides it automatically, or a band below which no approval is needed, may serve the business better. Approval by amount shows the second.

A monthly look

A short routine keeps a process healthy without anyone watching it daily:

  1. Open Insights on 30 days.
  2. Compare Started and Finished. If far more start than finish, work is piling up somewhere; Where work waits says where.
  3. Read Where runs stall. It should be empty. Anything there is a run nobody will ever move by themselves.
  4. Look at each step's usually waits against last month. A step that has doubled has a reason, usually a person or a role.
  5. Glance at How decisions go. A change in the share of rejections often says more about the business than about the process.

Questions that come up

Can I see Insights for one unit or one kind of request? The screen is about the process as a whole, over the period. For a narrower question, a saved query or a report over the records the process works on usually answers it, since the samples keep each record's status and level up to date.

Does Insights slow anything down? It reads the runs' history when you open it; nothing is counted while runs are going.

Who can see the people view? Whoever can open the process's Insights, which is in the maker portal. It is off by default so that a look at a process doesn't start as a look at people.

Where the numbers come from

Nothing is scheduled and nothing is copied. Every number is worked out, when you open the screen, from what the runs already recorded: when each task appeared, was picked up and was finished, and when each run started and ended. So the screen is never out of date, and a process that hasn't run yet has nothing to show. A step whose tasks haven't finished shows — for its times, rather than a zero that would read as instant.

Try it

Import the two-step sample, send a few change requests through it as two people, and leave one waiting. Open Insights, then tick Show people instead of steps. Send one more, reject it, and press Refresh.

Next: the process travels: export it in a solution, import it into another environment with its roles, and uninstall it again.