280 likes | 508 Views
(External Entities). Label. DATA FLOW DIAGRAMS (DFD): Sources and Sinks: Define System Boundaries Process (transformation) transforms data - no detail of how the transformation is done Inputs and Outputs Manual / Automated
E N D
(External Entities) Label DATA FLOW DIAGRAMS (DFD): Sources and Sinks: • Define System Boundaries Process (transformation) • transforms data - no detail of how the transformation is done • Inputs and Outputs • Manual / Automated • Process #, Brief descriptive label (action verb and object clause) 1. Receive Orders 1 Order Clerk: Order Entry # Desc. Who
# Invoices Invoices Identifiers (letters,etc) Data Store: • only processes can connect to data stores • A store is passive, process initiates flows Data Flow: Name
DFD Example Customer Warehouse Invalid Orders Orders Orders Order Detail Goods info Shipping Detail 1. Receive Order Cust.Name, Address 2. Ship goods Cust.Name, Address Customers Billing Info Cust.Name, Address Invoices Goods info Invoice Statement Invoice Details 3. Collect Pmts Customer Pmt. Inquiries
Order Detail Data Store: • may be a fundamental user requirement or an implementation store placed there for convenience. Validated Order (Essential Model) Process Order Enter Order Acknowledgement xx yy Order Detail Process Order Enter Order Orders (Implementation Model) Acknowledgement
Update/Create Use/Retrieval Naming data Flows: Orders Enter order ? What transformation Orders For Essential model name should be implementation free e.g. Course Request Form vs. Form23
1. Create new member account Member Accts. Employee file Employee Bank statement Membership application 3. Generate employee bank stat. Existing account Employee status Employee ID and address 2. Modified account status Freeze account number Accounts Receivable Dept Frozen acct. notification Common DFD Errors
Common DFD Errors: • Process1 has inputs but produces no outputs. This is called a black hole • Process 2 produces outputs but receives no inputs. This is called a miracle • Process 3 has inputs and outputs ; however the inputs are not sufficient to produce the outputs. This is called a gray hole.
DS Name DS1 DFD Errors DF-2 1.0 P-1 E-1 DF-5 DF-1 DF-3 DF-6 DF-4 2.0 P-2 DF-2 E-2
The Data Flow Packet Concept Phone Company Itemized Calls Statement and Invoice Correct Use of Packet Concept Itemized Calls Statement Pay Phone Bill Invoice
Diverging Data Flows Diverging data flows are implementation oriented and should be avoided on essential DFDs Customer Authorize Payment by Bank Card Credit Vouchers Due Credit Receipt Payments Customer Receipt Customer Authorize Payment by Bank Card Credit Vouchers Due Approved Credit Voucher Sale Payments
The Explosion Approach to drawing DFDs:As suggested by DeMarco and others, this diagramming technique requires the analyst to draw multiple DFDs, each one exploding from a single process on another diagram, until the system is completely modeled Context DFD A m Z The System p B n A C Z 1. 2. Overview DFD ZZZ E D B 3. A K D 1.1. B G 3.1 3.2 1.2 L H 1.3 XXX C M
id 2.0 3.0 1.0 1.1 1.2 2.1 2.2 1.3 2.3 1.4 1.4.1 1.4.2 1.4.3 1.4.4 Functional Decomposition and Leveled DFDs Parent Explodes to Explodes to Child Child Level 1 Diagram 1 Level 1 Diagram 2 Explodes to Level 2 Diagram 1.4 Grandchild
TOP - DOWN analysis & functional decomposition 0 The System 1. function A 2. function B 1.2 Activity 2 of function A 2.1 Activity 1 of function B 2.2 Activity 2 of function B 1.1 Activity 1 of function A Task 1.2.1 Task 2.2.1 Task 1.1.1 Task 2.1.1 Task 1.2.2 Task 2.2.2 Task 1.1.2 Task 2.1.2 Task 2.2.3 Task 1.1.3 Decomposition Diagram
Levelled Set of DFDs • How many levels - not > 9 processes in single DFD • Different parts of system can have different level of detail • Consistency (Balancing) - inflow and outflow to process must correspond in next level DFD • External entities,data stores,parent processes can, but need not be repeated in child diagram • Data Stores at different levels - show data store at the highest level where it first serves as an interface between two or more processes Top- Down Analysis and Functional Decomposition
Carson-Plymouth Medical Devices (CPMD), as assembler of sophisticated medical products, must maintain a ready supply of high-quality components to manufacture its products. To achieve this goal, CPMD’s purchasing department checks inventory levels each day by reviewing the inventory items stock list. When the quantity-on-hand of a particular item reaches its economic reorder point, CPMD’s purchasing department places a purchase order with its supplier (supplier data is accessed through the supplier file) for that component and files a copy in the purchase order file. When a supplier delivers a shipment along with a bill of lading, shipping and receiving (S/R) receives the shipment by performing a three-step process. First, the S/R clerk verifies the shipment by accessing a copy of the purchase order and comparing it to the bill of lading. If a received item appears on the purchase order and the bill of lading, the verified bill of lading and received items are passed on to Inspection. Otherwise, the S/R clerk generates a notice of shipment error, which is sent to the supplier. Next, the inspector inspects the valid shipment items by accessing the quality criteria, from the inspection criteria folder. If the item meets all the quality criteria, the inspector adds it to an accepted items list, which is forwarded to the inventory clerk. If an item does not pass inspection, the inspector creates a notice of defective shipment, which is sent to the supplier along with the defective items. Finally, the inventory clerk updates the inventory items list by adding the current-on-hand quantity, reflecting an updated quantity.
Carson-Plymouth Medical Devices (CPMD), as assembler of sophisticated medical products, must maintain a ready supply of high-quality components to manufacture its products. To achieve this goal, CPMD’s purchasing department checks inventory levels each day by reviewing the INVENTORY ITEMS STOCK list. When the quantity-on-hand of a particular item reaches its economic reorder point, CPMD’s purchasing department places a purchase order with its supplier (supplier data is accessed through the SUPPLIER file) for that component and files a copy in the PURCHASE ORDER file. When a supplier delivers a shipment along with a bill of lading, shipping and receiving (S/R) receives the shipment by performing a three-step process. First, the S/R clerk verifies the shipment by accessing a copy of the purchase order and comparing it to the bill of lading. If a received item appears on the purchase order and the bill of lading, the verified bill of lading and received items are passed on to Inspection. Otherwise, the S/R clerk generates a notice of shipment error, which is sent to the supplier. Next, the inspector inspects the valid shipment items by accessing the quality criteria, from the INSPECTION CRITERIA folder. If the item meets all the quality criteria, the inspector adds it to an accepted items list, which is forwarded to the inventory clerk. If an item does not pass inspection, the inspector creates a notice of defective shipment, which is sent to the supplier along with the defective items. Finally, the inventory clerk updates the INVENTORY ITEMS list by adding the current-on-hand quantity, reflecting an updated quantity.
Carson-Plymouth Medical Devices (CPMD), as assembler of sophisticated medical products, must maintain a ready supply of high-quality components to manufacture its products. To achieve this goal, CPMD’s purchasing department checks inventory levels each day by reviewing the INVENTORY ITEMS stock list. ProcessExt. Entity Input Output Data Store check inventory inventory levels from items to reorder inventory levels Inventory list items When the quantity-on-hand of a particular item reaches its economic reorder point, CPMD’s purchasing department places a purchase order with its supplier (supplier data is accessed through the SUPPLIER file) for that component and files a copy in the PURCHASE ORDER file. Process Ext. Entity Input Output Data Store create a PO supplier items to reorder, PO to supplier, inv items supplier data PO to file supplier, from Supplier file PO
When a supplier delivers a shipment along with a bill of lading, shipping and receiving (S/R) receives the shipment by performing a three-step process. First, the S/R clerk verifies the shipment by accessing a copy of the purchase order and comparing it to the bill of lading. If a received item appears on the purchase order and the bill of lading, the verified bill of lading and received items are passed on to Inspection. Otherwise, the S/R clerk generates a notice of shipment error, which is sent to the supplier. Process Ext. Entity Input Output Data Store verify Supplier bill of lading; verified bill PO copy of PO of lading, notice of shipment errors to Supplier
Next, the inspector inspects the valid shipment items by accessing the quality criteria, from the INSPECTION CRITERIA folder. If the item meets all the quality criteria, the inspector adds it to an accepted items list, which is forwarded to the inventory clerk. If an item does not pass inspection, the inspector creates a notice of defective shipment, which is sent to the supplier along with the defective items. Process Ext. Entity Input Output Data Store Inspect Supplier verified bill of lading; accepted items Inspection Shipment inspection criteria list; defective Criteria from Inspection shipment notice Criteria Folder to Supplier
Finally, the inventory clerk updates the INVENTORY ITEMS list by adding the current-on-hand quantity, reflecting an updated quantity Process Ext. Entity Input Output Data Store Update Accepted items updated inv levels Inv. Items Inventory list, current inv. levels
PO File DS2 Supplier DS1 Inspection Criteria DS2 Inventory Item DS4 Notice of defective shipment Notice of shipment error Verify shipment 3. Supplier Bill of lading Create PO 2. P.O. Verified bill of lading PO info New PO data Items to reorder Inspect shipment 4. Supplier data Inspection Criteria 1. Check inv levels Accepted items list Low items Updated data 5. Update Inv. Level 0 DFD Current Data
Supplier DS1 Inspection criteria 4.1 Identify Inspection Criteria Item numbers, criteria 4.2 Inspect Items 4.3 Prepare notice of defective shipment Defective items data Notice of defective shipment Level-1 DFD for Inspect Shipment Accepted items list
Context and level 0 DFD When parts are received from vendors, they are accompanied by an invoice. Mrs Gauron in the Receiving Dept checks the invoice against the orders file to be certain that the correct parts were delivered. If the parts were not ordered or the order was incorrectly filled, parts are returned. If the parts are correct, the inventory file is updated to reflect the new quantity of these parts. This is done by increasing the data element quantity-on-hand by the quantity-record for the part-id . Mrs Gauron then prepares the payment for the vendor. She also enters the payment transaction in the general ledger, which is maintained as the bound accounting ledger. A worker on the factory floor who needs a part requests it by submitting a requisition to the parts clerk. The information on this form is used to update the inventory file. Each week the parts clerk uses the inventory file to prepare a report listing all parts whose quantity- on- hand has fallen below the reorder point. For parts listed on the report, a purchase request form is prepared and sent to the purchasing office. [ Hint: do not confuse the processes being performed with the people who perform them ]
Context level DFD Purchasing Office Invoice Purchase Request Form 0. Inventory System Projected Part Vendor Requisition Floor Payment
Order File Inventory General Ledger Invoice Order record Vendor 1. Check invoice Approved Invoice Rejected Part Part-id, Qty Payment 2. Update Part Qty Approved Invoice 3. Pay Vendor Used Part info Inv. record Payment Info 4. Provide part 5. Check part for reorder 6. Prepare purchase request Requisition Purchasing office Reorder Info Floor Purchase request form
Delta Products Corporation is a major vendor of office supplies, furniture and equipment. Delta’s sales representatives call on customers to take orders. The sales rep write up the orders and turn them in to a sales order processing (SOP) clerk at the regional center. If the order items are in stock, the SOP clerk prepares a picking slip and packing list for each order. If any of the ordered items are out of stock, the SOP clerk completes an out of stock Notice forms, which notes the number of customer requiring the items and forwards it to Purchasing. A Purchasing clerk then completes a purchase order,which is mailed to a supplier. The SOP clerk notes back-ordered items on the customer’s order and forwards a copy of annotated customer order to Accounts receivable, where a A/R clerk prepares an invoice and sends it to the customer. The SOP clerk also forwards a picking slip and packing list to the warehouse, where stock price pickers fill the order,placing ordered items into boxes alongwith the packing list. The boxed items and packing list are held for delivery, usually via UPS. • Context Diagram • Level 0 DFD • Level 1 DFD for functions related to the sales-order processing clerk
EE-1 Customer 1 4 Write Order Bill Customer EE-2 Supplier 3 2.* 5 Fill Order Process Order Purchase Inventory EE-3 UPS Inventory Items D-1 Invoice Order Information Written Order Purchase Order Annotated Order Packing List & Picking Slip Out of Stock Notice Updated Inventory Current Inventory Level 0 DFD for Delta Products’ Order Fulfillment System
Inventory Items D-1 2.1 2.3 5 Check Item Availability Prepare OoS Notice Purchase Inventory 2.2 4 Annotate Order (backordered items) Bill Customer 2.4 3 Prepare packing list & picking slip Fill Order Updated Inventory Current Inventory Written Order Out of Stock items order Out of Stock Notice In-Stock items order Annotated Order Packing List & Picking Slip Level 1 Process 2.0 - Process Order