Data Flow Diagrams DFDs Data Flow Diagrams DFDs

  • Slides: 46
Download presentation
Data Flow Diagrams (DFDs)

Data Flow Diagrams (DFDs)

Data Flow Diagrams (DFDs) n n Data flow diagram (DFD) is a picture of

Data Flow Diagrams (DFDs) n n Data flow diagram (DFD) is a picture of the movement of data between external entities and the processes and data stores within a system DFDs are an excellent illustration of modeling as the bridge between specification and implementation.

DFD Symbols Process Data Flow Data Store Source/Sink (External Entity)

DFD Symbols Process Data Flow Data Store Source/Sink (External Entity)

Process n n n Work or actions performed on data (inside the system) Labels

Process n n n Work or actions performed on data (inside the system) Labels should be verb phrases Receives input data and produces output

Rule 1: Process n Can have more than one outgoing data flow or more

Rule 1: Process n Can have more than one outgoing data flow or more than one incoming data flow

Rule 2: Process n Can connect to any other symbol (including another process symbol)

Rule 2: Process n Can connect to any other symbol (including another process symbol)

Process: Correct/Incorrect?

Process: Correct/Incorrect?

Data Flow n n n Is a path for data to move from one

Data Flow n n n Is a path for data to move from one part of the IS to another Arrows depicting movement of data Can represent flow between process and data store by two separate arrows

Data Flow: Correct/Incorrect?

Data Flow: Correct/Incorrect?

Data Store n n Is used in a DFD to represent data that the

Data Store n n Is used in a DFD to represent data that the system stores Labels should be noun phrases

Rule: Data Store n Must have at least one incoming and one outgoing data

Rule: Data Store n Must have at least one incoming and one outgoing data flow

Source/Sink (External Entity) n n n External entity that is origin or destination of

Source/Sink (External Entity) n n n External entity that is origin or destination of data (outside the system) Is the singular form of a department, outside organization, other IS, or person Labels should be noun phrases Source – Entity that supplies data to the system Sink – Entity that receives data from the system

Rule: Source/Sink n Must be connected to a process by a data flow

Rule: Source/Sink n Must be connected to a process by a data flow

Source/Sink: Correct/Incorrect?

Source/Sink: Correct/Incorrect?

Rules for Using DFD Symbols n Data Flow That Connects A process to another

Rules for Using DFD Symbols n Data Flow That Connects A process to another process A process to an external entity A process to a data store An external entity to another external entity An external entity to a data store A data store to another data store YES NO

List the errors of this DFD

List the errors of this DFD

Level Of Details Context Diagram n n n Top-level view of IS Shows the

Level Of Details Context Diagram n n n Top-level view of IS Shows the system boundaries, external entities that interact with the system, and major information flows between entities and the system. Example: Order system that a company uses to enter orders and apply payments against a customer’s balance

Context Diagram of Order System

Context Diagram of Order System

Developing DFDs: An Example Hoosier Burger’s automated food n ordering system n Context Diagram

Developing DFDs: An Example Hoosier Burger’s automated food n ordering system n Context Diagram (Figure 8 -4) contains no data stores n Next step is to expand the context n diagram to show the breakdown of n processes (Figure 8 -5) n

Figure 8 -4 Context diagram of Hoosier Burger’s food ordering system

Figure 8 -4 Context diagram of Hoosier Burger’s food ordering system

Level-0 DFD n n Shows the system’s major processes, data flows, and data stores

Level-0 DFD n n Shows the system’s major processes, data flows, and data stores at a high level of abstraction When the Context Diagram is expanded into DFD level-0, all the connections that flow into and out of process 0 needs to be retained.

Figure 8 -5 Level-0 DFD of Hoosier Burger’s food ordering system

Figure 8 -5 Level-0 DFD of Hoosier Burger’s food ordering system

Context Diagram of Order System n. Order system that a company uses to enter

Context Diagram of Order System n. Order system that a company uses to enter orders and apply payments against a customer’s balance

Level-0 DFD of Order System n. Order system that a company uses to enter

Level-0 DFD of Order System n. Order system that a company uses to enter orders and apply payments against a customer’ s balance

Levelled Diagram

Levelled Diagram

Lower-Level Diagrams n Functional Decomposition ¨ An iterative process of breaking a system description

Lower-Level Diagrams n Functional Decomposition ¨ An iterative process of breaking a system description down into finer and finer detail ¨ Uses a series of increasingly detailed DFDs to describe an IS n Balancing ¨ The conservation of inputs and outputs to a data flow process when that process is decomposed to a lower level ¨ Ensures that the input and output data flows of the parent DFD are maintained on the child DFD

Strategies for Developing DFDs n Top-down strategy ¨ Create the high-level diagrams (Context Diagram),

Strategies for Developing DFDs n Top-down strategy ¨ Create the high-level diagrams (Context Diagram), then low-level diagrams (Level-0 diagram), and so on n Bottom-up strategy ¨ Create the low-level diagrams, then higherlevel diagrams

Data Flow Diagram Errors The following conditions are errors that occur when drawing a

Data Flow Diagram Errors The following conditions are errors that occur when drawing a data flow diagram: n A process with only input data flow or only output data flow from it. n

Data Flow Diagram Errors (Continued) n Data stores or external entities are connected directly

Data Flow Diagram Errors (Continued) n Data stores or external entities are connected directly to each other, in any combination.

Data Flow Diagram Errors (Continued) n Incorrectly labeling data flow or objects ¨ Examples

Data Flow Diagram Errors (Continued) n Incorrectly labeling data flow or objects ¨ Examples are: n Labels omitted from data flow or objects. n Data flow labeled with a verb. n Processes labeled with a noun. n Too many processes on a data flow diagram. ¨ Nine is the suggested maximum.

Data Flow Diagram Errors (Continued) Omitting data flow from the diagram n Unbalanced decomposition

Data Flow Diagram Errors (Continued) Omitting data flow from the diagram n Unbalanced decomposition between a parent process and a child diagram n ¨ The data flow in and out of a parent process must be present on the child diagram.

Current Physical There are two types of DFDs Physical and Logical DFDs n In

Current Physical There are two types of DFDs Physical and Logical DFDs n In the early stages you'll build a current physical DFD. On these you'll be recording, warts and all, the ways things are presently (often known as the "As-is"). n It will have all sorts of un-logical things to show and will reflect how things are done currently. There will likely be processes that exist purely because things are done manually. Data stores (such as stick pins or copy orders file etc. ) will exists because of how things are n presently done.

Current Physical n n n shown as External Entities. Clerical and temporary data stores

Current Physical n n n shown as External Entities. Clerical and temporary data stores will likely feature heavily What you document on the DFD won't seem to be very logical (I've even found processes that aren't actually needed, but still are done because no one told the staff they were no longer needed!). Dataflow names will likely correspond to document names There are sure to be process to process flows Data flows between external entities will possibly feature

Logical Data Flow Diagrams n n n Logical data flow diagrams show the business

Logical Data Flow Diagrams n n n Logical data flow diagrams show the business operates. They have processes that would exist regardless of the type of system implemented. In the current logical DFD variant, you start with the current physical and remove all aspects that are to do with "how" things are done presently you need to be showing only the "what" aspects.

Data Flow Diagram Progression The progression of creating data flow diagrams is: ¨ Create

Data Flow Diagram Progression The progression of creating data flow diagrams is: ¨ Create current physical DFD ¨ Create a logical DFD of the current system. ¨ Next add all the data and processes not in the current system that must be present in the new system. ¨ Finally derive the physical data flow diagram for the new system.

Data Flow Diagram Progression

Data Flow Diagram Progression

Logical Data Flow Diagrams Advantages of logical DFDs are: ¨ Better communication with users.

Logical Data Flow Diagrams Advantages of logical DFDs are: ¨ Better communication with users. ¨ More stable systems, since the design is based on a business framework. ¨ Increased understanding of the business by analysts. ¨ The system will have increased flexibility and be easier to maintain. ¨ Elimination of redundancy.

Physical Data Flow Diagrams Physical data flow diagrams show the system operates or how

Physical Data Flow Diagrams Physical data flow diagrams show the system operates or how the new system will be implemented. n Physical data flow diagrams include: ¨ Clarifying which processes are manual and which are automated. ¨ Describing processes in greater detail. ¨ Sequencing processes in the order they must be executed.

Physical Data Flow Diagrams Physical data flow diagrams include (continued): ¨ Temporary data stores

Physical Data Flow Diagrams Physical data flow diagrams include (continued): ¨ Temporary data stores and transaction files. ¨ Specifying actual document and file names. ¨ Controls to ensure accuracy and completeness.

Physical Data Flow Diagrams Advantages n Clarifying which processes are manual and which are

Physical Data Flow Diagrams Advantages n Clarifying which processes are manual and which are automated n Describing processes in more detail than logical DFDs n Sequencing processes that have to be done in a particular order n Identifying temporary data stores

Physical and Logical Data Flow Diagrams WHAT the system does - Current Physical DFD

Physical and Logical Data Flow Diagrams WHAT the system does - Current Physical DFD n HOW it does it - Current Logical DFD n WHAT it should do - Required Logical DFD n HOW it should do it - Required Physical DFD n

Guidelines for Drawing DFDs Completeness DFD must include all components necessary for system Each

Guidelines for Drawing DFDs Completeness DFD must include all components necessary for system Each component must be fully described in the project dictionary or CASE repository. n Consistency The extent to which information contained on one level of a set of nested DFDs is also included on other levels n

Exercise: Precision Tools sells a line of high-quality woodworking tools. When customers place orders

Exercise: Precision Tools sells a line of high-quality woodworking tools. When customers place orders on the company’s Web site, the system checks to see if the items are in stock, issues a status message to the customer, and generates a shipping order to the warehouse, which fills the order. When the order is shipped, the customer is billed. The system also produces various reports. n Draw a context diagram for the order system n Draw DFD diagram 0 for the order system

Context Diagram of Order System

Context Diagram of Order System

Identify Entities, Process, Data Stores & Data n Entities Customer ¨ Warehouse ¨ Accounting

Identify Entities, Process, Data Stores & Data n Entities Customer ¨ Warehouse ¨ Accounting ¨ n Processes ¨ ¨ ¨ n 1. 0 Check Status 2. 0 Issue Status Messages 3. 0 Generate Shipping Order 4. 0 Manage Accounts Receivable 5. 0 Produce Reports Data Stores D 1 Pending Orders ¨ D 2 Accounts Receivable ¨ n Data Flows ¨ ¨ ¨ ¨ Order In-Stock Request 1. 0 Order Data Status Data 2. 0 Status Message Shipping Order 3. 0 Order Data Invoice Shipping Confirmation 4. 0 Payment Accounting Data Accounts Receivable Data 5. 0 Order Data Inventory Reports

Level-0 of Order System

Level-0 of Order System