UPI Study › Courses › Software Engineering › Free lessons › Lesson 7.2 Free with a free account
Defining System Boundaries with Context Diagrams
Software Engineering · Chapter 7: Behavioral Models and Requirements AnalysisSection 7.2 · lesson 48 of 1036 min · free with a free account
Free preview
Create a free account to keep watching
It takes a minute and costs nothing. Your free account unlocks all of Chapter 1 and 3 more lessons of Software Engineering.
Lesson complete
Earn the 3 college credits for Software Engineering
Enrolling adds a quiz after each lesson, the graded work and the official transcript. Recommended for credit by NCCRS.
Next lesson: Modeling How Systems Behave Under Different Conditions →← Documenting Use Cases: Diagrams, Templates, and Best PracticesNext lesson: Modeling How Systems Behave Under Different Conditions →
In this lesson
Where the system ends, and everything else begins.
- Explain what a context diagram shows, and why it comes first
- Identify the process, external entities, and data flows
- Relate a context diagram to a level 0 DFD
- Interpret a complete context diagram
Transcript
Everything said in the video, section by section (759 words). Read along, or search it.
Behavioral Models and Requirements Analysis
Defining System Boundaries with Context Diagrams
Before analyzing anything happening inside a system, there is a more basic question worth settling. Where, exactly, does the system end, and everything else begin? This section covers the context diagram. What it shows, how it relates to data flow diagrams, and why it is drawn first.
The First Question
Where Does the System End?
A context diagram draws a single, deliberate line around an entire system, and shows everything that crosses it. The system itself appears as one undivided process. Around it are the people, organizations, and other systems it exchanges information with. Nothing about how the system works internally appears. That is intentional. Before any analysis of internal processes or logic is useful, the team first needs to agree on the boundary. What counts as part of the system, and what counts as something the system merely talks to?
Table 1
3 Building Blocks
A context diagram is built from three elements. The process is the system itself, drawn as a single circle, labeled zero plus the system's name. It treats the entire system as one undivided unit. An external entity is drawn as a rectangle. It is a person, an organization, or another system, outside the boundary, that exchanges data with it. And a data flow is a labeled arrow, connecting an entity to the process. It carries one specific piece of information, into or out of the system.
Figure 1
An Online Ordering System
Here is a context diagram for an online ordering system. The system sits in the middle as process zero. Around it are four external entities. A customer, a payment processor, an inventory database, and a warehouse system. Labeled arrows show exactly what data passes between each entity and the system.
Reading Figure 1
What Crosses the Boundary
Let's read what crosses the boundary. The customer sends order details in, and receives an order confirmation back. The system sends a payment request to the payment processor, which sends a payment confirmation back. Stock levels flow in from the inventory database. And a shipment request flows out to the warehouse system. Every arrow crosses the boundary once, in one direction, carrying one named piece of information.
Level 0
A Context Diagram Is a Level 0 DFD
A context diagram is not a separate technique from a data flow diagram. It is the very first level of one. In D F D leveling, the context diagram is called the level zero D F D. It is the system drawn as a single process, numbered zero. Later levels break that process down into smaller, numbered sub-processes. One point zero, two point zero, three point zero, and so on. Each level shows more detail than the one before it. The key idea is that every D F D, however detailed it becomes, starts from the same level zero context diagram.
Think About It
No Detail - So What's It For?
Here is a question to think about. If a context diagram shows no internal detail at all, what is it actually useful for? Its value is in what it forces the team to agree on early. Exactly which outside parties the system deals with, and exactly what data crosses the boundary in each direction. That becomes a foundation every later, more detailed diagram has to stay consistent with.
Why Boundary First
Whose Job Is the Warehouse?
Drawing the boundary first protects a project from a common and costly mistake. Disagreement, discovered late, about what the system is responsible for. Take the online ordering system. Suppose nobody agreed early that the warehouse system is an external entity, not part of the system being built. Someone might later assume the project must also build warehouse management, long after estimates and plans were set. A context diagram catches that disagreement while it is still cheap to resolve. It turns the boundary into a single, explicit, agreed picture, rather than an unstated assumption.
Key Terms
The Vocabulary of This Section
Let's lock in the key terms. A context diagram shows an entire system as a single process, surrounded by the external entities it exchanges data with. An external entity is a person, organization, or other system outside the boundary that sends or receives data, drawn as a rectangle. A data flow is a specific piece of information crossing the boundary, drawn as a labeled arrow. And a level zero D F D is the formal name for a context diagram. The system as a single, undivided process, numbered zero.
Key Takeaways
What to Carry Forward
To pull this together. A context diagram shows the entire system as one process, with no internal detail. Its three elements are the process, numbered zero, the external entities, and the labeled data flows. It is the level zero D F D, the starting point every more detailed data flow diagram is broken down from. And drawing the boundary first helps a team agree on scope, catching disagreements before they become costly.
About Software Engineering at UPI Study
Software Engineering (Computer Science 301) is a self-paced online course of 103 video lessons in 15 chapters, from process models and agile to requirements, design, user interfaces, reliability, security and project management. It carries a NCCRS credit recommendation for 3 semester credits.
Every lesson transcript is free on pages like this one, and the videos are free with a free UPI Study account. Enrolling adds a practice quiz after each lesson, the graded work and final exam that earn the credit, lifetime access, and an official transcript on completion. UPI Study has helped over 130,000 students with college credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
Enroll now → Course details Download the syllabus All Computer Science courses Every course with PRO →
Why take it here
Why students take Software Engineering with UPI Study
Where the credit goes
Universities that work with NCCRS
Software Engineering carries a NCCRS credit recommendation. These universities work with NCCRS; some are UPI Study's signed partners. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
Thomas Edison State UniversitySigned partner
University of the PeopleSigned partner
Charter Oak State CollegeSigned partner
Strayer UniversitySigned partner
Columbia Southern UniversitySigned partner
Indiana TechSigned partner
Penn StateWorks with NCCRS
Southern New Hampshire UniversityWorks with NCCRS
SUNYWorks with NCCRS
+many more cooperating universitiesFind my college →Find my college → Not listed? Ask Athena in the corner of this page, or book a 15-minute call.
FAQ
Questions students ask us
About Defining System Boundaries with Context Diagrams
What is a context diagram in software engineering?
How is a context diagram related to a level 0 DFD?
What are the elements of a context diagram?
Why should a context diagram be drawn first?
About the Software Engineering course
How many college credits is Software Engineering?
How much does Software Engineering cost and what is included?
Which universities accept UPI Study credits?
How long does Software Engineering take?
How are the exams done?
How do my credits reach my college?
Ready for the full course? Earn 3 credits in Software Engineering.
103 video lessons, a quiz after each one, and the graded work that earns the credit. Recommended for credit by NCCRS.
3 credits · NCCRSEnroll →