




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Outline
Learning Objectives
Process Modeling
Simple Data Flow Diagram
Data Flows & Control Flows
Data Stores
External Agents
Data Store
Level 0 Diagram o A data flow diagrams (DFD) that represents a system’s major processes, data flows and data stores at a higher level o Shows all the processes that comprise the overall system o Shows how information moves from and to each process o Adds data stores
Level 1 Diagrams o Shows all the processes that comprise a single process on the level 0 diagram o Shows how information moves from and to each of these processes o Shows in more detail the content of higher level process o Level 1 diagrams may not be needed for all level 0 processes
Level 2 Diagrams o Shows all processes that comprise a single process on the level 1 diagram o Shows how information moves from and to each of these processes o Level 2 diagrams may not be needed for all level 1 processes o Correctly numbering each process helps the user understand where the process fits into the overall system
Rules for stopping decomposition o When each process has been reduced to a single decision, calculation or database operation
o When each data store represents data about a single entity o When the system user does not care to see any more detail o When every data flow does not need to be split further to show that data are handled in various ways o When you believe that you have shown each business form or transaction, on-line display and report as a single data flow o When you believe that there is a separate process for each choice on all lowest-level menu options
Data Flows to and from Data Stores
Diverging and Converging Data Flows o A diverging data flow is one that splits into multiple data flows. o Useful for illustrating data that starts out naturally as one flow, but needs to be routed to parallel processes. o Also useful for illustrating multiple copies of the same output going to different destinations. o A converging data flow is the merger of multiple data flows into a single packet. o Useful for illustrating data from multiple sources that must come back together for some subsequent processing
Alternative Data Flows o Where a process can produce different data given different conditions o We show both data flows and use the process description to explain why they are alternatives o Tip -- alternative data flows often accompany processes with IF statements
Data Flow Diagramming Rules o Basic rules that apply to all DFDs o Inputs to a process are always different than outputs
store symbol, or a diagonal line of a sink/source square, to indicate repeated symbol.
Integrating Scenario Descriptions o DFDs start with the use cases and requirements definition o Generally, the DFDs integrate the use cases o Names of use cases become processes o Inputs and outputs become data flows o “Small” data inputs and outputs are combined into a single flow
Steps in Building DFDs o Build the context diagram o Create DFD fragments for each use case o Organize DFD fragments into level 0 diagram o Decompose level 0 processes into level 1 diagrams as needed; decompose level 1 processes into level 2 diagrams as needed; etc. o Validate DFDs with user to ensure completeness and correctness
Build the Context Diagram o Draw one process representing the entire system (process 0) o Find all inputs and outputs listed at the top of the use cases that come from or go to external entities; draw as data flows o Draw in external entities as the source or destination of the data flows
Creating DFD Fragments o Each use case is converted into one DFD fragment o Number the process the same as the use case number o Change process name into verb phrase o Design the processes from the viewpoint of the organization running the system o Add data flows to show use to data stores as sources and destinations of data o Layouts typically place o processes in the center o inputs from the left o outputs to the right o stores beneath the processes
Creating the Level 0 Diagram o Combine the set of DFD fragments into one diagram o Generally move from top to bottom, left to right o Minimize crossed lines o Iterate as needed o DFDs are often drawn many times before being finished, even with very experienced systems analysts
Creating Level 1 Diagrams (and Below) o Each use case is turned into its own DFD
o Take the steps listed on the use case and depict each as a process on the level 1 DFD o Inputs and outputs listed on use case become data flows on DFD o Include sources and destinations of data flows to processes and stores within the DFD o May also include external entities for clarity o Input data flows shown on a parent DFD are often unbundled on the child diagram using splits o Output data flows shown on a child DFD are often bundled using joins and shown as a larger data flow on the parent diagram o When to stop decomposing DFDs? o Ideally, a DFD has at least 3 processes and no more than 7-9.