A Beginner’s Guide to Data Flow Diagrams

A Beginner’s Guide to Data Flow Diagrams

Ask any professional athlete or business executive how they became successful, and they’ll tell you they mastered a process. By figuring out which of their habits led to success and which didn’t, they improved their efficiency, effectiveness, and productivity at work.

But implementing a process into a business, department, or even a team is a completely different animal than honing your own personal process. With so many moving parts, how do you track each aspect of your business’ process and how do you refine it?

Data flow diagrams provide a straightforward, efficient way for organizations to understand, perfect, and implement new processes or systems. They’re visual representations of your process or system, so they make it easy to understand and prune.

Before we dive into how data flow diagrams can help refine any of your business’ systems or processes, let’s go over what it exactly is.

Download Now: An Introduction to Data Visualization for Marketers [Free Guide]

data-flow-diagram

Image Source

DFDs became popular in the 1970s and have maintained their widespread use by being easy to understand. Visually displaying how a process or system works can hold people’s attention and explain complex concepts better than blocks of text can, so DFDs are able to help almost anyone grasp a system’s or process’ logic and functions.

There are two types of DFDs — logical and physical. Logical diagrams display the theoretical process of moving information through a system, like where the data comes from, where it goes, how it changes, and where it ends up.

Physical diagrams show you the practical process of moving information through a system, like how your system’s specific software, hardware, files, employees, and customers influences its flow of information.

You can either use logical or physical diagrams to describe the same flow of information or you can use them in conjunction to understand a process or system on a more granular level. But, before you can use a DFD to understand your system or process’ flow of information, you need to know the standard notations or symbols used to describe it.

Data Flow Diagram Symbols

Data Flow Diagram symbols are standardized notations, like rectangles, circles, arrows, and short-text labels, that describe a system or process’ data flow direction, data inputs, data outputs, data storage points, and its various sub-processes.

There are four common methods of notation used in DFDs: Yourdon & De Marco, Gene & Sarson, SSADM and Unified. All use the same labels and similar shapes to represent the four main elements of a DFD — external entity, process, data store, and data flow.

Data-flow-diagram-symbols

Image Source

External Entity

An external entity, which are also known as terminators, sources, sinks, or actors, are an outside system or process that sends or receives data to and from the diagrammed system. They’re either the sources or destinations of information, so they’re usually placed on the diagram’s edges. External entity symbols are similar across models except for Unified, which uses a stick-figure drawing instead of a rectangle, circle, or square.

Process

Process is a procedure that manipulates the data and its flow by taking incoming data, changing it, and producing an output with it. A process can do this by performing computations and using logic to sort the data, or change its flow of direction. Processes usually start from the top left of the DFD and finish on the bottom right of the diagram.

Data Store

Data stores hold information for later use, like a file of documents that’s waiting to be processed. Data inputs flow through a process and then through a data store while data outputs flow out of a data store and then through a process.

Data Flow

Data flow is the path the system’s information takes from external entities through processes and data stores. With arrows and succinct labels, the DFD can show you the direction of the data flow.

Before you start mapping out data flow diagrams you need to follow four best practices to create a valid DFD.

1. Each process should have at least one input and one output.

2. Each data store should have at least one data flow in and data flow out.

3. A system’s stored data must go through a process.

4. All processes in a DFD must link to another process or data store.

Levels of Data Flow Diagrams

DFDs can range from simple overviews to complex, granular representations of a system or process with multiple levels, starting with level 0. The most common and intuitive DFDs are level 0 DFDs, also called context diagrams. They’re digestible, high-level overviews of the flow of information through a system or process, so almost anyone can understand it.

Level 0: Context Diagram

This DFD level focuses on high-level system processes or functions and the data sources that flow to or from them. Level 0 diagrams are designed to be simple, straightforward overviews of a process or system.

Level 1: Process Decomposition

While level 1 DFDs are still broad overviews of a system or process, they’re also more detailed — they break down the system’s single process node into subprocesses.

Level 2: Deeper Dives

The next level of DFDs dive even deeper into detail by breaking down each level 1 process into granular subprocesses.

Level3: Increasing Complexity

Level 3 and higher-numbered DFDs are uncommon. This is largely due to the amount of detail required, which defeats its original purpose of being easy to understand.

Data Flow Diagram Examples

Professionals in various industries, like software engineering, IT, ecommerce, and product management & design, can use DFDs to better understand, refine, or implement a new system or process.

But what does a data flow diagram look like in practice — and how does it help your business? Here are three examples to help contextualize DFD impact.

1. Level 0 DFD

Level 0 DFD

 

Image Source

This Level 0 DFD provides a contextual map of a securities trading platform. Data flows in one direction from the customer service assistant and the broker to the platform, and in two directions from customers to the platform and back again.

2. Level 1 DFD

Level 1 DFD

Image Source

This Level 1 DFD breaks down the customer process in more detail, expanding it to include account creation, cash withdrawals, and eventual securities transactions.

3. Level 2 DFD

Image Source

This Level 2 DFD decomposes the “Place Order” process to contextualize the steps required to place an order — either by a customer or by a broker. It even accounts for a third-party stock exchange center where transaction details are forwarded after an order is placed.

1. Select a system or process.

Begin by selecting a specific system or process you want to analyze. While any system or process can be turned into a DFD, the larger the process the more complicated the diagram and the more difficult it will be to contextualize. Wherever possible, start with a small function or process you’re looking to improve.

2. Categorize related business activities.

Next, categorize all activities related to this process into external entities, data flows, processes, and data stores.

Consider a restaurant food ordering system. Customers are external entities, the food ordering system is a process, and the interaction between customers and the system (which goes in both directions) is the flow. 

Also worth noting? The ordering system doubles as a data store, so for an SSADA model, this means drawing it as a rectangle with rounded corners with two horizontal lines inside to represent its dual function.

3. Draw a Context DFD.

Now it’s time to start drawing. DFDs can be created by hand, using free templates available online, or via browser extensions.

Begin with a simple, Level 0 DFD: Start with your process or system, then map all basic connections and flows.

4. Check your work.

Before diving into more complex DFDs, check the work you’ve already done to make sure it’s accurate and complete. If you’ve missed (or added) a process, entity, or flow, your next-level DFDs may not make sense and you may be forced to start over.

5. Create child diagrams.

For each process or system described in your Level 0 DFD, create a new child diagram with its own entities and flows. Eventually, you can use these child diagrams to connect processes together. 

6. Expand processes into Level 1 DFDs.

Using your child diagrams, you should map more in-depth connections between each process. In the case of our restaurant example, this could mean digging deeper into the food ordering system and its connection to suppliers, managers, customers, and kitchen staff.

7. Repeat as needed.

Each process — no matter how large or small — can be reimagined as a Level 0 context diagram and the cycle can begin again. Repeat these steps as needed to create as many DFDs as required, or break processes down further to develop Level 2, 3, etc. DFDs.

Perfecting Your Process

While there’s no such thing as a “perfect” data flow diagram, continued practice can help streamline the process and offer critical insight into what’s working, what isn’t and where your business can make improvements that offer the biggest impact.

Your best bet? Remember the rule: Keep it simple. Start with context, build out connected processes, and repeat as needed to map key connections, flows, and entities across your organization.

Blog - Data Visualization [List-Based]

Leave a Reply

Your email address will not be published. Required fields are marked *