ACCT 320 · Accounting Information Systems
Data Flow and Process Diagrams
A data flow diagram shows where information comes from, what changes it, where it rests, and where it goes, without caring about step order.
Key takeaways
- A data flow diagram shows four things: external entities, processes, data stores and data flows.
- A DFD follows the data, not the order of work, so it has no decision diamonds and no start or end.
- A context diagram shows the whole system as one process with everything outside it; lower levels split that process into parts.
- Each level must balance: the data going into and out of a process must match the level above.
- DFDs reveal gaps such as data that goes in but never comes out, or stores nobody reads.
Rosa at Spoke & Mirror gets a surprise. A customer insists she paid for a repair last week, but Rosa's books show nothing. Where did the payment go? Was it keyed in at the register? Did it reach the bank? Did it get posted to the customer's account? Each question asks about data: where it was born, where it traveled, and where it stopped.
A flowchart, from the last lesson, answers "what happens next?" A data flow diagram, or DFD, answers a different question: "where does the information go?" It ignores timing and decisions and follows the data instead. This is the tool accountants use to see a whole system on one page, and to find the places where data can be lost, changed or copied.
The four building blocks
A DFD needs only four symbols. Everything else is labels.
External entity. A person or organization outside the system that sends data in or receives data out. For Spoke & Mirror: Customer, Supplier, Bank. Drawn as a square. The system does not control them, which is why they are "external."
Process. An activity that changes data: it takes inputs and makes outputs. Drawn as a circle or rounded box, labeled with a verb phrase such as "Record sale." A process must have at least one input and at least one output. If it has only inputs, data vanishes. If it has only outputs, data appears from nowhere.
Data store. A place where data rests: a file, a database table, a filing cabinet. Drawn as two parallel lines or an open box, labeled with a noun such as "Customer accounts."
Data flow. An arrow that carries a named piece of data between the other three. The label names the data, not the action: "Payment," "Invoice," "Order." Every arrow has a name.
One rule keeps diagrams honest: data cannot move directly between two stores, or two external entities, without a process in between. Something has to do the moving.
Flowchart or DFD: which one?
Both draw a process, but they answer different questions. A flowchart asks, "In what order do the steps happen, and who does them?" A DFD asks, "What data enters, what changes it, where is it kept, and where does it leave?"
Use a flowchart to study controls like approvals and handoffs. Use a DFD to see the whole system and its data. Auditors often draw both for the same process. The DFD tells them what data exists and where it lives, which shows what must be protected and tested. The flowchart tells them how the steps run.
Levels: from the big picture down
The cleverest idea in DFDs is levels. You do not draw the whole system in one crowded picture. You start at the top and zoom in.
Context diagram (level 0). The entire system is a single process in the middle, with every external entity around it and the data flowing in and out. It answers: "What does this system touch, and what crosses its border?"
For Spoke & Mirror's sales system, the middle process is "Sales system." The entities are Customer, Bank and Rosa (the owner). The flows are: Order from Customer; Receipt to Customer; Card payment to Bank; Deposit from Bank; Sales report to Rosa.
Level 1. Open the one process and break it into its main parts. "Sales system" becomes three processes: "Record sale," "Collect payment," and "Report results." Now data stores appear: "Sales file" and "Customer accounts."
Level 2. Open any single process from level 1 for more detail, for instance "Collect payment," which might split into "Check card" and "Post payment."
Stop when each process is simple enough to describe in a sentence. Most business systems need only two or three levels.
The balancing rule
When you open a process into a lower level, the data crossing the edge of the lower diagram must match the data going into and out of the parent process. This is called balancing.
Take level 0: the sales system receives Order and Card payment details and outputs Receipt, Card charge, and Sales report. At level 1, the three smaller processes together must still take in the same inputs and send out the same outputs. If a level 1 process suddenly sends out a "Credit report" that the parent never mentioned, the diagram is out of balance. Either the parent is incomplete or the child invented something.
Balancing is how a reviewer checks your work without knowing the business. Count the flows at each border and see if they agree.
A worked example: Spoke & Mirror's sales system
Let us build the level 1 diagram step by step and count.
Level 0 flows crossing the border:
- In: Order (from Customer), Bank approval (from Bank).
- Out: Receipt (to Customer), Card charge (to Bank), Sales report (to Rosa).
That is 2 inputs and 3 outputs, 5 flows in all.
Level 1 splits into three processes:
- Record sale takes Order and writes Sale details to the Sales file. It sends Receipt to the Customer.
- Collect payment reads Sale details from the Sales file, sends Card charge to the Bank, receives Bank approval, and writes Payment to Customer accounts.
- Report results reads the Sales file and Customer accounts, and sends Sales report to Rosa.
Now check the balance. Flows crossing the outer border at level 1: Order (in), Bank approval (in), Receipt (out), Card charge (out), Sales report (out). That is 2 in and 3 out, matching level 0. Flows inside, like Sale details and Payment, stay inside and do not count at the border. The diagram balances.
Now use it to answer Rosa's puzzle about the lost payment. Follow "Payment" backward: it was written to Customer accounts by "Collect payment," which depends on Bank approval. If the bank approval never arrived, the payment would never be posted, and the books would show nothing even though the customer left the shop. The diagram points straight at the place to look.
Level 0 border: 2 in (Order, Bank approval) 3 out (Receipt, Card charge, Sales report)
Level 1 border: 2 in (Order, Bank approval) 3 out (Receipt, Card charge, Sales report)
Balanced: 5 flows = 5 flows Spotting trouble on a DFD
A finished diagram is also a checklist for problems. Look for these patterns.
- Black hole. A process with inputs but no outputs. Data goes in and nothing comes out. Often a report nobody builds.
- Miracle. A process with outputs but no inputs. Something comes from nowhere, so a source is missing.
- Gray hole. Outputs that could not possibly be made from the inputs. A "Sales report" needs sales data, so if the process does not read the Sales file, the output is a mystery.
- Write-only store. A data store that is written to but never read. Someone is keeping records nobody uses, which wastes effort, or a report is missing.
- Read-only store. A store that is read but never written. Where did the data come from?
Hypothetical example: the numbers are made up to show the method, not a quote or an average.
A common mistake
Students often draw decisions and order of steps on a DFD, labeling an arrow "if approved." That belongs on a flowchart. A DFD arrow just shows that data can flow, not when or under what condition. Another typical slip is naming a flow with a verb ("Process payment") when it should carry a noun ("Payment"). The process box holds the verb, and the arrow holds the thing being moved.
A third mistake is connecting two data stores directly. A file does not copy itself into another file. If data moves, some process moves it, and you must name that process, because that is where a control belongs.
Why accountants care
Data stores are where information stays, so they are where theft, error and tampering do the most damage. A DFD shows every store at a glance, and also shows every entity that reaches in. The next lessons turn those stores into tables. In relational databases for accountants, each store becomes one or more linked tables, and in designing data models you will decide what goes in each one. Controls over who may read and write each store are covered in IT general controls and application controls.
Words to know
Data flow diagram (DFD) a diagram that shows how data moves between outside parties, processes and stored files.
External entity a person or organization outside the system that sends or receives data.
Process an activity that turns inputs into outputs.
Data store a place where data is kept between uses, such as a file or database table.
Context diagram the top-level DFD that shows the whole system as one process with its outside connections.
Balancing making sure the data crossing a lower-level diagram's border matches the process above it.
Black hole a process that takes in data but produces no output.
Check yourself
- List the four building blocks of a data flow diagram and give one Spoke & Mirror example of each.
- What is the main difference between a data flow diagram and a flowchart?
- A level 0 diagram has 4 flows in and 3 flows out. A level 1 diagram under it shows 4 in and 4 out at the border. Is it balanced, and what is the problem?
- Why is "Record the sale" a good name for a process but a poor name for a data flow?
- Explain what a write-only data store suggests about the system.
- In the worked example, how many flows cross the border, and which flow did we trace to explain the missing payment?
Show the answers
- External entity (Customer), process (Record sale), data store (Sales file), data flow (Payment).
- A flowchart shows steps in order with decisions and who does them; a DFD shows where data comes from, rests and goes, with no ordering.
- Not balanced: 3 out versus 4 out; the lower level invented an output the parent never showed.
- A verb phrase describes an activity, which is a process; a flow must name the data being moved, a noun such as Sale details.
- Someone is saving data that nothing reads, so effort is wasted or a needed report or process is missing.
- 2 in + 3 out = 5 flows; we traced Payment back through Customer accounts to Bank approval.