Lists the assumptions and dependencies of this document, and decomposes the inside of Bookstore operations, shown in the business context, step by step as the business model.
Shows the whole of Bookstore operations, which this system supports, as a levelled data flow diagram (DFD). The boundary of the diagrams is Bookstore operations, not this system. This system takes on part of the business; its extent is given under Business processes in scope, and its boundary is drawn by the system context chapter of the design document. The context diagram, which shows the whole business as one process with its inputs and outputs, is in the business context; here the processes are decomposed step by step, and each decomposition diagram shows the flow of data between its processes and the data stores and external entities.
| No. | Process | Description | Decomposition |
|---|---|---|---|
| Bookstore operations | The whole of the store's work, from buying books through selling them at the counter to managing stock. The system supports part of it. | Diagram 0 | |
| 1 | Purchasing | Ordering from suppliers and taking in the books delivered. Registering new books and suppliers also happens here. | Diagram 1 |
| 1.1 | Place orders | Pick the books that are running low and order them from a supplier. | |
| 1.2 | Record deliveries | Check the delivered books and quantities against the delivery note, record them and add them to stock. | |
| 1.3 | Register books | Register a book newly taken into the range in the ledger by its ISBN. | |
| 1.4 | Register suppliers | Register a supplier the store newly deals with in the ledger. | |
| 2 | Sales | Taking payment from customers and recording completed sales. | Diagram 2 |
| 2.1 | Take payment | Take payment for the books the customer has chosen and hand over a receipt. | |
| 2.2 | Record sales | Record the books and quantities of each completed sale and deduct them from stock. A sale that includes a book not in the ledger is recorded as pending. | |
| 2.3 | Review pending sales | Match the books of a pending sale to books in the ledger, confirm the sale and deduct it from stock. | |
| 3 | Inventory control | Checking the actual quantities of stock, and looking stock up. | Diagram 3 |
| 3.1 | Take stock | After closing, count the actual quantity of every book, reset stock to the counted figures and record the differences. | |
| 3.2 | Look up stock | Find the current stock quantity of a book. |
The row without a number is the business as a whole, whose decomposition is diagram 0. Numbered processes without a decomposition diagram are the leaves, the units of business work that the scope table and the use case descriptions refer to (the name links to that row).
| Data store | Description |
|---|---|
| Book ledger | The list of books the store carries, with ISBN, title and publisher. |
| Supplier ledger | The list of suppliers the store deals with, with name and contact details. |
| Stock ledger | The current stock quantity of each book. |
| Delivery records | The record of books and quantities delivered by suppliers. |
| Sales records | The record of completed sales and of pending sales awaiting review. |
| Stocktake records | The record, per stocktake and per book, of the difference between the book quantity and the counted quantity. |
| External entity | Description |
|---|---|
| Customer | A person who buys books at the counter. |
| Supplier | A wholesaler or publisher that takes orders and delivers books. |
External entities are the parties outside the boundary of the business; their boundary differs from that of this system’s actors.
The clerk and the owner are inside the business and carry out its processes, and the payment service is a tool of the checkout, not a party the business deals with.
For each decomposed process, shows its child processes and the flows the children exchange with parties outside the diagram (external entities, data stores, processes of other diagrams). A line to a party outside the diagram bundles the lines drawn in the higher-level diagram as inputs and outputs of the parent process, and the flow table of each diagram records that correspondence (the higher-level flow). There are 4 diagrams, Diagram 0, Diagram 1, Diagram 2, Diagram 3, in the same order as the process hierarchy.
The inputs and outputs of a decomposition diagram must match the flows drawn in the higher-level diagram as inputs and outputs of the parent process (balancing). For each decomposition diagram, the check confirms that every flow crossing the boundary has a higher-level flow whose ends correspond, that no flow staying inside the diagram has a higher-level flow, and that every input and output of the parent process is bundled by some flow in the diagram. Data stores lie inside the business and do not appear in the context diagram, so a flow to or from a data store needs a higher-level flow only when that data store is drawn in the higher-level diagram. The check also confirms that the source and the target of every flow each resolve to exactly one party.
In all 4 decomposition diagrams the inputs and outputs match between the levels, and every flow’s source and target resolve to one party.