Sub topic 3
What a Task Flow Shows
This chapter assumes you know what a user goal is, can read a basic flowchart, and have seen the difference between a goal and a task from the previous chapters. Here you will learn what a task flow contains, what it leaves out, and where it commonly goes wrong.
The working model
A task flow shows the steps needed to complete one task. It follows a single, specific task from a defined start to a defined end. It usually has one entry point, one intended outcome, and only the decisions that happen inside that task.
A user flow is wider. It follows a person across a product, often from several entry points to several possible outcomes. A task flow narrows the view to one job, such as resetting a password, adding an item to a cart, or exporting a report.
Task flows are often drawn from the product's point of view. They record what the person does and what the system does in response, without much about why the person came or what they feel. That makes them useful for designers and developers who need to agree on exact steps.
What belongs in a task flow
A useful task flow contains five things.
- A named task. Write it as a verb and an object, such as "Reset password". If you cannot name the task in a few words, it is probably two tasks.
- A start condition. This states where the task begins and what is already true. In the example, the user has forgotten the password and is not signed in.
- Steps. Each step is one user action or one system response. "Enter email" is a step. "Send reset link" is a system step.
- Decisions. A decision is a point where the path depends on a condition, such as whether the password meets the rules.
- An end state. This is the point where the task is done, so the user can stop. It can be a success or a deliberate failure exit.
Everything else is optional. In particular, a task flow does not need to show how the user found the product, what they did last week, or what they will do next.
Task flow versus user flow
The two are easy to mix up because they use the same shapes. The differences are in scope and purpose.
| Aspect | Task flow | User flow |
|---|---|---|
| Scope | One task | A path through a product, possibly several tasks |
| Entry points | Usually one | Often several |
| Outcomes | One intended outcome, plus failure exits | Several possible outcomes |
| Typical question | What exactly happens when someone does this? | How does someone get from where they are to what they want? |
| Typical reader | Designer or developer working on a feature | Team aligning on a journey |
In practice, the line is a matter of degree. If your diagram has three entry points and branches into different goals, it is behaving as a user flow even if you labelled it a task flow. Fix the label or split the diagram.
Reading a task flow
Read a task flow in four passes.
- Find the start and end shapes. The rounded terminators mark them. If you cannot find an end, the flow is incomplete.
- Follow the happy path, which is the route where everything works. In the password example it runs from the start through the "Yes" branch to the end.
- Find each decision diamond and check that every outgoing arrow is labelled.
- Follow each non-happy branch and confirm it either rejoins the main path or reaches its own end.
The password example has one loop. When the new password breaks the rules, the user sees hints and returns to the same entry step. This is a common task flow pattern: the user stays in place until they can move forward.
A larger example with several outcomes
A task flow can have more than one end, as long as all of them belong to the same task. The next diagram shows "Pay for an order". It has a success end and two failure exits.
Notice what the diagram leaves out. It does not show browsing the shop, building the basket, or what happens in the email after confirmation. Those belong to other tasks or to the wider user flow.
Checking a flow with code
A task flow is a directed graph, so you can store it as data and check it automatically. The script below stores a flow as a map from each step to its next steps. It then lists any step that leads nowhere and is not a declared end point. Those are dead ends.
const flow = {
open_app: ["has_account"],
has_account: ["login_form", "signup_form"],
login_form: ["credentials_valid"],
signup_form: ["home"],
credentials_valid: ["home", "login_error"],
login_error: ["login_form"],
home: [],
};
const endpoints = new Set(["home"]);
const deadEnds = Object.entries(flow)
.filter(([step, next]) => next.length === 0 && !endpoints.has(step))
.map(([step]) => step);
console.log(deadEnds); // []The output is an empty array, so every step either leads somewhere or is a declared end. To see the check fail, remove home from endpoints. The output becomes ["home"], because a step with no exits now looks like a mistake.
The check has limits. It cannot tell you whether a step is the right one, or whether a loop can ever be escaped. It only confirms that no step is a silent dead end.
Common errors
These are the problems you will meet most often when drawing task flows.
- Two tasks in one diagram. A flow that covers "sign in" and "update profile" has no single end. Split it.
- Missing end states. An arrow that stops with no terminator leaves the reader guessing whether the task is done.
- Unlabelled decision branches. A diamond with two unlabelled arrows cannot be read.
- Steps that hide several actions. "Complete the form" is really many steps. Whether to split it depends on the audience, which later chapters cover under level of detail.
- Only the happy path. A flow that shows only success hides the cases developers must build. Error paths get their own chapter, but at minimum show where the task can fail.
- Mixing screens and actions. A box saying "Settings screen" describes a place. A box saying "Open settings" describes an action. Pick one style and keep it throughout the diagram.
- Endless loops. A retry loop with no exit traps the user. Give it a limit or a way out, as the payment example does with "Try again?".
When to use a task flow
Use a task flow when you need to settle the exact steps of one task before designing screens. It works well for the following situations.
- Checking that a feature has no missing steps before development starts.
- Comparing two ways to complete the same task, such as a one-page checkout and a multi-step checkout, by drawing both.
- Finding steps that can be removed. Every box is a chance for the user to stop, so fewer boxes often means fewer drop-offs.
- Handing developers a precise description of states and conditions.
Choose a user flow instead when the question is about how people move between tasks, or about which entry point they use. Choose a journey map when the question is about feelings and context over time. Those comparisons are covered in the next chapter.
Summary of the model
A task flow is a focused flowchart. It has one named task, a clear start, steps, decisions, and defined ends. It keeps scope tight so that every step can be checked. When it grows beyond one task, it turns into a user flow, and the right response is to split it or relabel it.
Exercise
A teammate draws a diagram titled "Buy a product". It begins at the home page, shows browsing categories, adding to a basket, entering payment details, and a confirmation email, and it has three separate start points. Is this a task flow? Explain what you would change to make it one.
Show answer
As drawn, it behaves like a user flow, because it has three entry points and covers several tasks (browsing, building a basket, paying, receiving email). To make it a task flow, pick one task, for example "Pay for an order". Start it at a single point, such as "review order", and keep only the steps from there to the end: enter payment details, a card accepted decision, a confirmed end, and failure exits for declined cards. Move browsing and the confirmation email into other flows.
Exercise
Using the dead-end script from this chapter, you add a step help_page: [] to the flow and link to it from login_error, so login_error becomes ["login_form", "help_page"]. You do not change endpoints. What does the script print, and what should you do about it?
Show answer
It prints ["help_page"], because that step has no exits and is not declared as an end point. Decide whether the help page is a real end of the task. If the user leaves the task there, add help_page to endpoints. If the user should be able to return, add an exit such as help_page: ["login_form"].