Presentation is loading. Please wait.

Presentation is loading. Please wait.

ACG 6415 Data Modeling: Data Flow Diagrams Flow Charts.

Similar presentations


Presentation on theme: "ACG 6415 Data Modeling: Data Flow Diagrams Flow Charts."— Presentation transcript:

1 ACG 6415 Data Modeling: Data Flow Diagrams Flow Charts

2 Logical DFD A logical data flow diagram is a graphical representation of a system showing the system’s processes (as bubbles), data stores, and the flows of data into and out of the processes and data stores. WHAT tasks the system is doing— without having to specify how, where, or by whom the tasks are accomplished. The advantage of a logical DFD (versus a physical DFD) is that we can concentrate on the functions that a system performs. 2

3 Data Flow Diagrams Logical model of ?
Data gathered from requirements determination RD determined what? What the new system should do AND What the old system does Depiction of processes and data flows of a system 3

4 Benefits of DFD’s Uncover misunderstandings of system processes
Help communicate analyst system understanding to management/end users Helps to take the system out of context Eases the problem of thinking outside of the box 4

5 Fed Ex Process (Physical DFD)
5

6 Data Flow Diagrams Modeling tool Graphically represent a system as
network of functional processes connected to one another by “pipelines” and “holding tanks” of data. The components of a typical dataflow diagram: the process, the flow, the store, and the terminator/Entity. 5

7 Basic DFD Symbols 6

8 Level-1 DFD Employee Accounting Department 7 1.0 Create Weekly Payroll
Record Employee Data File S1 Employee Tax Form Payroll Data File S2 2.1 Compute Gross Pay 2.3 Check 2.2 Net 3.2 Print Summary 3.1 Sort Records by Employee 4.2 Tax Form 4.1 Calculate Deductions Employee Paycheck Employee Payroll Time Sheet Employee Record Gross Pay Data Net Pay Hours Worked Payroll Record Sorted Records Payroll Report Employee Accounting Department 7

9 The Process the process name will describe what the process does.
Use Verb-Object Phrase That is, the process sometimes describes who or what is carrying out the process, rather than describing what the process is. In 6415 we will only describe what the process does - logical vs. physical DFD 8

10 The Flow A flow is represented graphically by an arrow into or out of a process we wont use double sided arrows in class used to describe the movement of chunks, or packets of information from one part of the system to another part. Thus, the flows represent data in motion For many complex, real-world systems, the DFD will show the flow of materials and data. The name represents the meaning of the packet that moves along the flow. A corollary of this is that the flow carries only one type of packet, as indicated by the flow name. Note also that the flows show direction: indicates whether data (or material) are moving into or out of a process 9

11 Diverging and Converging Flows
Diverging flow: duplicate copies of a packet of data are being sent to different parts of the system or that a complex packet of data is being split into several more elementary data packets, each of which is being sent to different parts of the system Converging flow: several elementary packets of data are joining together to form more complex, aggregate packets of data. 10

12 Diverging Data Flow 11

13 The Store The store is used to model a collection of data packets at rest. a store can be data stored on: punched cards, microfilm, microfiche, or optical disk, or a variety of other electronic forms, a 3-by- 5 index cards in a card box, or names and addresses in an address book, or several file folders in a file cabinet, or a variety of other non- computerized forms. The notation for a store is two parallel lines Typically, the name chosen to identify the store is the plural of the name of the packets that are carried by flows into and out of the store. 12

14 The Terminator or External Entity
Terminators represent external entities with which the system communicates. graphically represented as a rectangle They are outside the system we are modeling; the flows connecting the terminators to various processes (or stores) in our system represent the interface between our system and the outside world. These are Inputs and Outputs to/from the System Entities providing Inputs are AKA Sources Entities receiving Outputs are AKA Sinks Entities can be both Sources and Sinks Any relationship that exists between terminators will not be shown in the DFD model. If there are relationships between the terminators, and if it is essential for these to be modeled then the terminators are actually part of the system and should be modeled as processes. 13

15 DFD Guidelines Choose meaningful names for processes, flows, stores, and terminators. Number the processes. Redraw the DFD as many times as necessary for esthetics. Avoid overly complex DFDs. Make sure the DFD is internally consistent and consistent with any associated DFDs (ie Balanced). 14

16 DFD Levels DFD models are organized in a series of levels so that each level provides successively more detail about a portion of the level above Top Level: Context Diagram consists of only one bubble representing the entire system the data flows show the interfaces between the system and the external entities Successive Levels: Figure/Level-0 highest-level view of the major functions within the system the major interfaces between those functions Level-1 ... Level n 15

17 How Many Levels should you have?
each DFD figure should have no more than half a dozen bubbles and related stores. Simple Systems 2-3 Levels Medium Sized System 3-6 Levels Large System 5-8 Levels 16

18 Balancing DFD Levels To ensure that each figure is consistent with its higher-level figure, we follow a simple rule: the data flows coming into and going out of a bubble at one level must correspond to the data flows coming into and going out of an entire figure at the next lower level which describes that bubble. 17

19 How do you show stores at the various levels?
show a store at the highest level where it first serves as an interface between two or more bubbles then show it again in EVERY lower- level diagram that further describes (or partitions) those interface 18

20 Context Diagram One Process At least one Entity
Describes System / Process At least one Entity Outside of System / Process At least one Source & one Sink 19

21 Logical DFD 20

22 Context-Level Diagram
Employee Payroll System Employee Tax Form Payroll Report Time Sheet Employee Payroll Check Employee Accounting Department 21

23 Employee Payroll Record
Level-0 DFD 1.0 Create Weekly Payroll Record Employee Data File S1 S2 2.0 Compute Paycheck 3.0 Prepare Summary 4.0 Tax Form Accounting Department Employee Record Paycheck Data Payroll Record Payroll Report Employee Paycheck Employee Tax Form Time Sheet Hours Worked Employee Payroll Record 22

24 Level-1 DFD Employee Accounting Department 23 1.0 Create Weekly
Payroll Record Employee Data File S1 Employee Tax Form Payroll Data File S2 2.1 Compute Gross Pay 2.3 Check 2.2 Net 3.2 Print Summary 3.1 Sort Records by Employee 4.2 Tax Form 4.1 Calculate Deductions Employee Paycheck Employee Payroll Time Sheet Employee Record Gross Pay Data Net Pay Hours Worked Payroll Record Sorted Records Payroll Report Employee Accounting Department 23

25 Functional Primitive 4.1.2 Calculate Non-tax Deductions 4.1.3
Retirement Allowance 4.2.1 Employee Vacation Pay 4.1.1 Payroll Tax 4.2.2 Print Tax Form Data Employee Tax Form Record Employee Data 24

26 Balanced DFDs The next slide depicts “balanced” data flow diagrams.
Balanced DFDs exist when the external data flows are equivalent. DFD (a) is a context diagram and (b) is an “explosion” of it into a level 0 logical DFD. DFD (c), (d) and (e) are “explosions” of the logical level 0 DFD, and so on. 25

27 Balanced DFDs 26

28 All data flows must begin and/or
The Rules of DFDs In a nutshell… All data flows must begin and/or end at a process, because data flows either initiate or result from a process. 27

29 Rules Governing DFD Construction
A process cannot have only outputs – “miracle.” A process cannot have only inputs – “black hole.” The inputs to a process must be sufficient to produce the outputs from the process - (gray hole). All data stores must be connected to at least one process. 28

30 Rules Governing DFD Construction
A data store cannot be connected to a source or sink. A data flow can have only one direction of flow. Multiple data flows to and/or from the same process and data store must be shown by separate arrows. If the exact same data flows to two separate processes, it should be represented by a forked arrow. Data cannot flow directly back into the process it has just left. All data flows must be named using a noun phrase. 29

31 Three Basic Illegal Data Flows
Entity Name Identifier Process Black Hole Identifier Process Name File Miracle Employee 1.0 Create Paychecks File Gray Hole 30

32 Other Illegal Flows Data Must Be Connected to a Process
Employee File D1 Order D2 Data Must Be Connected to a Process Customer Cust File D1 Employee 1.0 Create Paychecks No Bi-Directional Flows 31

33 One Final Illegal Flow Data Cannot Flow Directly Back Into
2.1.0 Process Name Data Cannot Flow Directly Back Into The Process It Left 32

34 A Debate Which is Right? 2.2.0 Process 2.3.0 2.1.0 2.2.0 Process 2.3.0
33

35 Balancing Data Flows B A A C B Formatted A C Context Level System
Source 1.0 Format Data Sink 2.0 Send Reports 2 A Formatted A Formatted C C B Context Level System A B Source Context Level System Sink 2 C 34

36 Preparing Data Flow Diagrams
Read narrative carefully - number lines and paragraphs in text Prepare table of entities and activities Draw context diagram - use DFD guidelines 35

37 Steps for Creating E&A Table
Read Narrative Identify all Verb phrases (circle them) Identify all Noun phrases (rectangles or data store) Line by line insert noun as Entity and Verb as Activity along with data flow noun if present Identify External Entities Identify Internal Entities 36

38 Entities and Activities Table
38

39 DFD Guidelines 1. Include on the systems documentation all (and only) activities and entities described in the systems narrative - no more, no less. 2. When multiple entities operate identically, depict only one to represent all. 37

40 Causeway Context Diagram
38

41 DFD Guidelines (cont.) 3. For clarity, draw a data flow for each flow into and out of a data store. You may, also for clarity to help you determine that you have included all necessary flows, label each flow with the activity number that gives rise to the flow or with a description of the flow. 4. If a data store is logically necessary (that is, because of a delay between processes), include a data store in the diagrams, whether or not it is mentioned in the narrative. 39

42 DFD Guidelines (Level-0 and higher)
5. Group activities if they occur in the same place and at the same time. 6. Group activities if they occur at the same time but in different places. 7. Group activities that seem to be logically related. 8. To make the DFD readable, use between five and seven bubbles. 9. On a logical DFD, data flows cannot go from higher- to lower-numbered bubbles. 40

43 Causeway Logical Level 0 DFD
41

44 Standard Flowchart Symbols
42

45 Common system flowcharting routines
The following slides show several common ways of showing processing using system flowcharting. Pay particular attention to the way the columns are set up to communicate the flow of activities between processing entities. 43

46 The data-entry clerk keys in an input document into the computer
The data-entry clerk keys in an input document into the computer. The computer accesses data in a data store 1 and in data store 2 to edit/validate the input. The computer displays the input, including any errors. The clerk compares the input document to the display, keys corrections as necessary, and accepts the input. The computer updates the table in data store 2 and notifies the clerk that the input has been recorded. 44

47 User queries the computer
User queries the computer. The computer accesses the table(s) in one of more data stores & presents a response to the user. Update sequential data store from magnetic disk are input to the computer, along with the existing (old) master data – becoming the new master data 45

48 The user batches the input documents, prepares batch totals, and keys the documents into the computer. The computer records the inputs on disk and notifies the user as each input is accepted. The user files the input documents in numerical sequence. At the end of the batch, the computer prepares an exception & summary report that includes batch totals. The user compares the computer batch totals to those prepared earlier. 46

49 A data entry clerk enters documents into a networked PC system
A data entry clerk enters documents into a networked PC system. The system records the inputs on a disk and notifies the user of the acceptance of each input. The documents are then forwarded to a different clerk who keys the documents again. Differences are resolved and the event data are updated to reflect the verifications and corrections. 47

50 A clerk scans a document into the computer
A clerk scans a document into the computer. Use the data from the scanned document, the computer updates the data store(s) 48

51 A clerk scans a document into the computer
A clerk scans a document into the computer. The computer routes an image of the scanned input to a data entry clerk, who keys data from the documents image into the computer. The computer records the data with the scanned document 49

52 Preparing Systems Flowcharts
1. Divide the flowchart into columns; one column for each internal entity and one for each external entity. Label each column. 2. Flowchart columns should be laid out so that the flowchart activities flow from left to right, but you should locate columns so as to minimize crossed lines and connectors. 50

53 System flowcharting guidelines (cont.)
3. Flowchart logic should flow from top to bottom and from left to right. For clarity, put arrows on all flow lines. 4. Keep the flowchart on one page. If you can’t, use multiple pages and connect the pages with off-page connectors. Computerized flowcharting packages will print your flowcharts only on paper that will fit in your printer! 51

54 52

55 System flowcharting guidelines (cont.)
5. Within each column, there must be at least one manual process, keying operation, or data store between documents. That is, do not directly connect documents within the same column. 6. When crossing organizational lines (one column to another), show a document at both ends of the flow line unless the connection is so short that the intent is unambiguous. 53

56 System flowcharting guidelines (cont.)
7. Documents or reports printed in a computer facility should be shown in that facility’s column first. You can then show the document or report going to the destination unit. 8. Documents or reports printed by a centralized computer facility on equipment located in another organizational unit ( warehouse, shipping dept.) should not be shown within the computer facility. 54

57 System flowcharting guidelines (cont.)
9. Processing within an organizational unit on devices such as a PC or computerized cash register should be shown within the unit or as a separate column next to that unit, but not in the central computer facility column. 10. Sequential processing steps (computerized or manual) with no delay between them (and resulting from the same input) can be shown as one process or as a sequence of processes. 55

58 System flowcharting guidelines (cont.)
11. The only way into a computer data storage unit is through a computer processing rectangle. 12. A manual process is not needed to show the sending of a document. The sending of the document should be apparent from the movement of the document itself. 13. Do not use a manual process to file a document. Just show the document going in to a file. 56

59 Causeway’s Systems Flowchart
The systems flowchart for Causeway is presented again on the next slide This flowchart for causeway is again presented without an enterprise database 57

60 Documenting Enterprise Systems
Moving from a file-based system to an enterprise database changes the system flowchart An enterprise database replaces transaction and master data Other flows may change depending on the system implementation 58

61 59


Download ppt "ACG 6415 Data Modeling: Data Flow Diagrams Flow Charts."

Similar presentations


Ads by Google