1 / 24

Process Modeling……

Process Modeling……. Lecture 08. Outline. Data flow diagram (DFD). Data Flow Diagram (DFD). Very popular tool for describing functions of a system in terms of processes and data used by them FDD may be done before DFD or we may prepare DFDs directly Have more contents than FDDs

jessehall
Télécharger la présentation

Process Modeling……

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Process Modeling…… Lecture 08

  2. Outline • Data flow diagram (DFD)

  3. Data Flow Diagram (DFD) • Very popular tool for describing functions of a system in terms of processes and data used by them • FDD may be done before DFD or we may prepare DFDs directly • Have more contents than FDDs • Flow of data is shown, not flow of control • DFDs are simple pictorial representations; easily understood by users and management.

  4. Data Flow Diagrams (DFD) … • DFDs are unambiguous and concise • They can describe processing at physical as well as logical levels • DFDs facilitate top-down development • They permit outlining of preferences and scope

  5. or or DFD Notation • Data Flow : labeled arrow • Sources and sinks of information/data (also called external entity) • Process n n or (n : number for referencing • Available data (data store) n

  6. Example: Air line reservation

  7. Context Diagram • Shows the entire application as a single process • Identifies its external interfaces • This is the starting point; also called Fundamental System Model, Level 0 DFD

  8. Context Diagram …

  9. Process Refinement • Decompose a process into sub processes • May reveal more data stores, external interfaces • Use decimal numbering system: process 1 is decomposed into 1.1, 1.2, etc. • At each level, understand all data flows and processing; label processes, data stores and data flows (arrows) meaningfully. • Continue decomposition and stop when control flow (conditional branches, loops) surfaces. Refine until processes are well understood.

  10. Refinement … • DFDs do not show control flow • DFDs do not show initializations (such as initial file creation), but show processes running in a steady state • DFDs only show exceptions/errors having specific business rules to deal with them; handling of routine errors generally not shown

  11. Refinement … • Processes must be independent of each other (cohesion, coupling principles apply); work of a process depends only on its inputs and not on state of another process • Only needed data should be input, and outputs should be based on data entering the process

  12. Refinement … • Ensure consistency among levels: inputs and outputs at previous level should be present at next level

  13. Physical DFD • Shows implementation details • Names and locations of places/people • Ways of storing data (like card indexes) • Tasks as performed today: e.g., 2 persons handling UG, PG students separately. • Useful for describing existing system to validate it with users • Needs to be converted into logical DFD after validation from users

  14. Showing Boundaries

  15. DFD Example 1: Payroll

  16. DFD Example 2: Old Car Mart • Buys and sells old cars; has large number in stock: different models, make, year,colors,… • Does some repairs for adding value; records kept; has own garage • Advertise in news papers • Salesmen hired on commission basis to handle customers, negotiate, etc. • Needs to take stocks; prepare summary of sales, profits, etc; pay salesmen Prepare DFD and ER diagrams

  17. Car Mart …

  18. Car Mart … • Define data stores and flow clearly to understand the DFD • We can further refine some of the processes • For process 5: Making a sale • Take buyer requirements and his/her other details • List cars that match requirements • Show repair history, car history • Register sale and negotiated price • Compute commission

  19. E-R Diagram Add important attributes, give cardinalities

  20. Example 3: Book Supplier • Supplies books to customers; no stocks maintained; books sourced directly from publishers • Prepare context diagrams (all inputs/output not shown, such as invoices,…..

  21. Book-Supplier : Refinement 1

  22. Book Supplier: Exploding Process 2

  23. Book Supplier : homework • Refinement 1 needs to be extended for handling payments • Extend for : Payments from customers • Create ‘a/c receivable’ for books sent • Update receivable when payments received • Credit rating will need to be adjusted periodically • Extend for : Payments to publishers • Create ‘a/c payable’ when invoices received • Check invoices with books actually received • Make payments periodically as per payment terms (within fixed days; incentives for early payment, etc.)

  24. Summary • Process modeling by process decomposition • DFD shows data flows, stores and processes, but not control flows • Proper naming of stores, processes and indicating data flowing among them very important for DFDs to be independently readable

More Related