Black Friday race Join
General

Data flow diagram template

An order’s data traced from Customer through three numbered processes, a Payment provider and two data stores. Rename the flows to follow the data in your own system.

The Data flow diagram template

What is a data flow diagram?

A data flow diagram, or DFD, shows where data comes from, what is done to it, where it is kept and where it ends up. It has no decisions and no timing. It only answers one question: what information moves between which parts?

This template follows one order. A Customer sends order details in. Three processes, Validate order, Take payment and Fulfill order, handle it in turn. A Payment provider is asked for money along the way, and two stores named Customers and Orders hold the records.

The data flow diagram template: Customer on the left, three numbered process circles in a row, Payment provider above and two data stores below.
Data enters on the left, is processed in the middle and rests at the bottom.

The four symbols

A DFD uses only four kinds of element, and the template has each of them:

  • External entity. A person or system outside your control that sends or receives data. Customer and Payment provider are the two here, drawn as rectangles.
  • Process. Something that changes data. Each circle has a number and a verb phrase: 1.0 Validate order.
  • Data store. Data at rest. Customers is labeled D1 and Orders is D2.
  • Data flow. An arrow with a noun on it. Order details goes from Customer into process 1.0, and Customer record comes up from D1.

Notice what process 1.0 does: two flows go in and one, Valid order, comes out. A process always turns inputs into a different output.

An entity, a process and a store, with a named flow on each arrow.

Follow the data from left to right

The three processes are numbered in the order the data reaches them. Validate order passes a Valid order to Take payment, and Take payment passes a Paid order to Fulfill order. The noun changes at every step, and that is the detail to copy: each label says what the data has become, not what the system is doing.

The numbers do more than sort. If Take payment grows complicated, you can draw a second diagram just for it and number its parts 2.1, 2.2 and 2.3. Readers then know where that page fits in this one.

From the last process, a Shipping notice travels all the way back to the Customer, so the diagram ends where it began.

The label on each arrow names what the data has become.

Label both directions

Look at how Take payment talks to the Payment provider. There are two separate arrows: Charge request goes up and Payment result comes back. One double-headed arrow would have been quicker to draw and would have said almost nothing.

Apply the same rule everywhere. Every arrow gets a noun, and a request and its answer get an arrow each. Then check the three things a DFD forbids: data moving straight from one entity to another, from one store to another, or from an entity into a store. Each of those needs a process in between, because something has to do the moving.

A request and its reply are two flows, each with its own name.

How to use the data flow diagram template

  1. Open it as a new board. Use this template copies the order example to your workspace. It is a Pro template, so you need the Pro or Team plan.
  2. Name the outsiders first. Replace Customer and Payment provider with the people and systems that hand you data or receive it. They mark the edge of what you are describing.
  3. Rewrite the processes as verb plus object. Keep the numbering, and change Validate order, Take payment and Fulfill order to what your system does to the data.
  4. Rename the stores and keep their IDs. D1 and D2 become your own tables, files or queues. Add D3 if you need another.
  5. Check every process for balance. Each circle needs at least one flow in and one flow out. A process with only inputs loses data, and one with only outputs invents it.

For a longer walk-through, read how to make a data flow diagram.

Fulfill order writes its result to a store, where the data comes to rest.

When a DFD is the right diagram

Use it to scope a new system, to explain an integration, or to review what personal data you hold and who receives it. Security and privacy reviews often start from a DFD because every arrow that crosses to an outside entity is a place to ask what is being shared.

A DFD does not show order or conditions. For the steps and decisions, draw a flowchart. For the structure of what sits inside the stores, use an ER diagram. If the same review needs to list what could go wrong at each flow, continue on the threat model template.

Questions about the Data flow diagram template

What is the difference between a data flow diagram and a flowchart?

A flowchart shows control: what happens first, what happens next and which way a decision goes. A data flow diagram shows information: what data moves between entities, processes and stores. A DFD has no decision diamonds and no start or end, and its arrows carry nouns such as Order details instead of yes and no.

What are level 0 and level 1 diagrams?

Level 0, also called a context diagram, shows the whole system as one process with its external entities. Level 1 breaks that process into its main parts. The template is a level 1 diagram: its processes are numbered 1.0, 2.0 and 3.0, and each could be broken down again on a level 2 page.

Can data go directly from one store to another?

No. A store only holds data. Something has to read it and write it elsewhere, and that something is a process. If you find an arrow between two stores on your board, add the process that does the copying and label both flows.

Why is one data store labeled D1?

Stores get short IDs so they can be referred to in text and reused across diagrams. D1 is Customers and D2 is Orders. If the same store appears on a more detailed page, it keeps its ID, and readers know it is the same data.