Docsity

Logical Modeling of Processes: Understanding Data Flow Diagrams, Assignments of Electronic Technology

Toggle sidebar
bg1
IS 460 Notes Professor Yong Tan
1
LECTURE 11: PROCESS MODELING
Outline
• Logical modeling of processes
• Data Flow Diagram Elements
• Functional decomposition
• Data Flows
• Rules and Guidelines
• Structured Analysis with Use Cases
Learning Objectives
• Understand the logical modeling of processes through studying data flow diagrams
• How to draw data flow diagrams using rules and guidelines
• How to decompose data flow diagrams into lower-level diagrams
• Balancing of data flow diagrams
• Discuss the use of data flow diagrams as analysis tools
Process Modeling
• Graphically represent the processes that capture, manipulate, store and distribute data
between a system and its environment and among system components
• Data flow diagrams (DFD)
o Graphically illustrate movement of data between external entities and the processes
and data stores within a system
• Modeling a system’s process
o Utilize information gathered during requirements determination
o Structure of the data is also modeled in addition to the processes
• Deliverables and Outcomes
o Set of coherent, interrelated data flow diagrams
o Context data flow diagram (DFD)
• Scope of system
o DFDs of current system
• Enables analysts to understand current system
o DFDs of new logical system
• Technology independent
• Show data flows, structure and functional requirements of new system
o Project dictionary and CASE repository
Simple Data Flow Diagram
pf3
pf4
pf5
pf8

Partial preview of the text

Download Logical Modeling of Processes: Understanding Data Flow Diagrams and more Assignments Electronic Technology in PDF only on Docsity!

LECTURE 11: PROCESS MODELING

Outline

  • Logical modeling of processes
  • Data Flow Diagram Elements
  • Functional decomposition
  • Data Flows
  • Rules and Guidelines
  • Structured Analysis with Use Cases

Learning Objectives

  • Understand the logical modeling of processes through studying data flow diagrams
  • How to draw data flow diagrams using rules and guidelines
  • How to decompose data flow diagrams into lower-level diagrams
  • Balancing of data flow diagrams
  • Discuss the use of data flow diagrams as analysis tools

Process Modeling

  • Graphically represent the processes that capture, manipulate, store and distribute data between a system and its environment and among system components
  • Data flow diagrams (DFD) o Graphically illustrate movement of data between external entities and the processes and data stores within a system
  • Modeling a system’s process o Utilize information gathered during requirements determination o Structure of the data is also modeled in addition to the processes
  • Deliverables and Outcomes o Set of coherent, interrelated data flow diagrams o Context data flow diagram (DFD) - Scope of system o DFDs of current system - Enables analysts to understand current system o DFDs of new logical system - Technology independent - Show data flows, structure and functional requirements of new system o Project dictionary and CASE repository

Simple Data Flow Diagram

1. DFD Elements

Data Flows & Control Flows

  • A data flow represents an input of data to a process, or the output of data from a process. o A data flow may also be used to represent the creation, reading, deletion, or updating of data in a file or database (data store). o A composite data flow is a data flow that consists of other data flows.
  • A control flow represents a condition or nondata event that triggers a process. o Used sparingly on DFDs.

Data Stores

  • A data store is an inventory of data. o Frequently implemented as a file or database. o A data store is “data at rest” compared to a data flow that is “data in motion.” o Almost always one of the following: - Persons (or groups of persons) - Places - Objects - Events (about which data is captured) - Concepts (about which data is important) o Data stores depicted on a DFD store all instances of data entities (depicted on an ERD)

External Agents

  • An external agent defines a person, organization unit, or other organization that lies outside of the scope of the project but that interacts with the system being studied. o External agents define the “boundary” or scope of a system being modeled. o As scope changes, external agents can become processes, and vice versa.

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

3. Data Flows

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

4. Rules and Guidelines

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.

5. Creating DFDs From Use Cases

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.