عملية نمذجة البرمجيات د محمد زكي شبير www.islamit.net
Chapter 1 Business Modeling 9/28/2019 www.islamit.net د. محمد زكي شبير 2
KEY TOPICS IN THIS CHAPTER General View of the System Business Use Case Diagram Activity Diagram State Machine Diagram 9/28/2019 www.islamit.net د. محمد زكي شبير 3
1 General view of the system 9/29/2019 www.islamit.net د. محمد زكي شبير 4
1 General view of the system Scope of the project: projects with simple and well-defined requirements may demand no more than a couple of days of business modeling while complex and large projects may demand weeks or months 9/28/2019 www.islamit.net د. محمد زكي شبير 5
continue Q1) The first question the analyst should answer is the following: What is the vision of the company for the project? In other words, what does the company want with the project? Why is it being proposed, and why is the company going to spend money with it ? Q2) Buying or developing ? 9/28/2019 www.islamit.net د. محمد زكي شبير 6
Executive summary The general view of the system or executive summary is a free format document A few pages of text and some diagrams seem to be sufficient to describe in a summarized way the scope of most systems the main deliverables of the project should be also defined may also contain some acceptance criteria for the product used to decide whether the project was a success or not 9/28/2019 www.islamit.net د. محمد زكي شبير 7
continue The product acceptance criteria must at least include metrics for deadlines, budget, and quality 9/29/2019 www.islamit.net د. محمد زكي شبير 8
subjective criteria customer satisfied system easy to use they must be quantified it must be defined how to measure 9/29/2019 www.islamit.net د. محمد زكي شبير 9
Examples of quantifiable acceptance criteria The system must support up to 50,000 simultaneous accesses without degrading performance T he system must eliminate the need to use paper for performing processes x and y, 9/29/2019 www.islamit.net د. محمد زكي شبير 10
continue the system must allow selling up to 100 books a minute on the Internet 9/29/2019 www.islamit.net د. محمد زكي شبير 11
More information Main risks technologies to be used, etc. 9/29/2019 www.islamit.net د. محمد زكي شبير 12
2. Business Use Case Diagram 9/29/2019 www.islamit.net د. محمد زكي شبير 13
General View for the Livir Project Version 1.0 Vision: A new business will be initiated: a virtual bookstore. The system to support it must manage the acquisition and selling processes of the company. Access for customers and management people must be accomplished through a Web site. 9/29/2019 www.islamit.net د. محمد زكي شبير 14
continue When a book is ordered, it is delivered immediately if available in stock, or else, the book is ordered to a publisher, and a compatible deadline is informed to the customer. The system must calculate taxes and delivery fee as well as applying discounts to the sale when applicable 9/29/2019 www.islamit.net د. محمد زكي شبير 15
continue The system must allow a manager to generate reports on bestselling books, and on most profitable customers, as well as suggest books for buying based on past customer’s interests . 9/29/2019 www.islamit.net د. محمد زكي شبير 16
Constraints : Customers would only pay by credit card . The bookstore will deal only with new books, not used ones. Access to the system will be available through a web site only. 9/29/2019 www.islamit.net د. محمد زكي شبير 17 Figure 2.1 : General view for the Livir project .
Figure 2.1 : General view for the Livir project. 9/29/2019 www.islamit.net د. محمد زكي شبير 18
Business use case Figure 2.2 : Business use case. 9/29/2019 www.islamit.net د. محمد زكي شبير 19
continue Figure 2.3 : Business actor (left) and business worker (right ). 9/29/2019 www.islamit.net د. محمد زكي شبير 20
Links Figure 2.4 : Links between business actors, business workers, and business use cases . 9/29/2019 www.islamit.net د. محمد زكي شبير 21
candidates for automation Figure 2.5 : Business use cases: candidates for automation . 9/29/2019 www.islamit.net د. محمد زكي شبير 22
System boundary Figure 2.6 : System boundary being used to indicate the scope of the project . 9/29/2019 www.islamit.net د. محمد زكي شبير 23
actor split Figure 2.7: An actor is split because only part of its role will be automated . 9/29/2019 www.islamit.net د. محمد زكي شبير 24
2.4 Business activity diagram 9/29/2019 www.islamit.net د. محمد زكي شبير 25
introduction For a better understanding create an activity diagram for each business use case that is going to be automated processes at the organizational level 9/29/2019 www.islamit.net د. محمد زكي شبير 26
First approach Figure 2.8 First approach to an activity diagram for modeling the book sales business process . 9/29/2019 www.islamit.net د. محمد زكي شبير 27
ordered books are not available let’s examine the situation when some of the ordered books are not available in stock. It would be necessary to order them from one of the publishers and add them to the customer order after arrival 9/29/2019 www.islamit.net د. محمد زكي شبير 28
Example of parallel flows Figure 2.9 Example of decision control flow . 9/29/2019 www.islamit.net د. محمد زكي شبير 29
:Example of parallel flows Figure 2.10 : Example of parallel flows . 9/29/2019 www.islamit.net د. محمد زكي شبير 30
Business use case diagram updated Figure 2.11: Business use case diagram updated with information discovered with the activity diagram. 9/29/2019 www.islamit.net د. محمد زكي شبير 31
4 State Machine Diagram 9/29/2019 www.islamit.net د. محمد زكي شبير 32
I ntroduction Besides business use cases, which may be detailed by activity diagrams, it may be important to understand other aspects of a business that do not always appear clearly in such diagrams, such as some key business objects that change state during their life cycle 9/29/2019 www.islamit.net د. محمد زكي شبير 33
continue The state machine diagram specifies events in its flows. An event triggers the flow that takes the entity from one state to another. That is, the flows are labeled with events that, if they occur, make the entity change from one state to another. 9/29/2019 www.islamit.net د. محمد زكي شبير 34
The life cycle of a book in the bookstore Examining the different states of a key business object such as a book for this project may reduce the risk of underestimating the complexity of the system requirements. 9/29/2019 www.islamit.net د. محمد زكي شبير 35
continue Thus, the team may discover that the book is initially registered in the catalog of a publisher. The bookstore can then order a set of copies of the book 9/29/2019 www.islamit.net د. محمد زكي شبير 36
continue When the delivery arrives, the book is added to stock and made available for sale. 9/29/2019 www.islamit.net د. محمد زكي شبير 37
continue Once sold, the book is removed from stock and taken to the shipment department. In some situations, books may return to the bookstore, for example, due to a wrong address, or for being damaged during shipment. 9/29/2019 www.islamit.net د. محمد زكي شبير 38
In the first case, the bookstore must contact the customer and, depending on the contact, it can cancel the sale or resend the book. The book life cycle finishes only when the transport company confirms the delivery. 9/29/2019 www.islamit.net د. محمد زكي شبير 39
continue All those changes of state (transitions) are represented in Figure 2.12 9/29/2019 www.islamit.net د. محمد زكي شبير 40
Figure 2.12: First state machine model for the life cycle of a book . 9/29/2019 www.islamit.net د. محمد زكي شبير 41
Figure 2.13 : State machine diagram with guard conditions . 9/29/2019 www.islamit.net د. محمد زكي شبير 42
Figure 2.14 State machine diagram with a superstate . 9/29/2019 www.islamit.net د. محمد زكي شبير 43