Data Flow Diagrams Often a good way of summarising sources and destinations of data and the processing that takes place Shows how data is transformed into information as it moves through a system and what data needs to be stored Can be used at both the Analysis (existing system) and Design (proposed system) stages of a project
Context diagram Analyst should start with this before drawing a full DFD Focuses on the inputs and outputs Only uses the source/destination and data flow symbols A blank circle is drawn where the rest of the DFD should appear Identifies the system’s users and their interactions with the system
Diagram Levels Diagrams are in layers or levels with each providing a greater degree of detail Context diagrams show the whole context and are also called Level 0 Level 1 shows a process to handle each incoming data flow and a process to generate each output data flow Level 2 is part of the system with more detail of processing
Example Context Diagram System Club secretary MembershipNo DatePaid amount Printed members letters ErrorMessage1
Data Flow Diagrams Data source or data destination e.g. user documentation or OMR Data Store - where data is held within the system e.g. stock file Process e.g. validate code Data Flow e.g. customer ID or
Meter reading Customer file Customer details Updated details Bill Validate entry Calculate bill DFD for an electricity meter
Book Borrower Bar code A library loans system identifies each book in its stock by a unique BookID. This is encoded in a bar code and attached to the book. When a borrower returns a book it is scanned and any fine that is due is calculated by extracting from the library database the date that the book was due back. Copy and complete the given DFD that describes this part of the library system.
Example Mr Jollifant owns a children’s party entertainment business and employs a number of clowns, conjurers etc on a part-time basis. All bookings are kept in a large ledger type book. Mrs Jollifant produces a word processed list of bookings for the next month for each entertainer. At the end of the year she goes through the books, and produces a table similar to the one shown below.
Inputs/Process/Storage Output Input/output booking details from client (input) monthly schedules produced (output) annual statistical summary (output) Storage bookings ledger Processes calculate available bookings and store in ledger produce monthly schedules calculate statistics
DFD