四川大学数据结构实验Lab4_2
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Create an Activity Diagram
4-9 ⎭ ⎭ ⎭ Lab 4-2
Create an Activity Diagram
In this lab, you’ll practice creating an activity diagram that shows the workflow for a use case’s basic flow. We will model an activity diagram as it relates to our use-case model, specifically to illustrate the Maintain Personal Planner use case’s basic flow.
Before You Begin
⎭
Make sure you’ve successfully completed Lab 4-1. ⎭ Do not begin this lab until you’ve discussed the appropriate information in Module 4: The Use-Case Model in the Student Manual.
Objective
In Lab 4-2, select one of the following options to create an activity diagram. Option 1
Look at the Maintain Personal Planner Use-Case Specification on page 4-11 to determine the activities in the basic flow.
Option 2
Use the Activity Diagram on page 4-12 and follow the existing diagram to create the activity diagram in your model.
Lab Outcome
⎭ Completed activity diagram showing the Maintain Personal Planner use case’s basic flow
Fundamentals of Rational Rose Student Workbook
Lab Artifacts
⎭Maintain Personal Planner Use-Case Specification
⎭Activity Diagram
⎭Lab4_1.mdl file
⎭Lab4_2.mdl file
4-10
Fundamentals of Rational Rose Student Workbook
4-11
Maintain Personal Planner Use-Case Specification
1. Maintain Personal Planner
1.1 Brief Description
This use case allows the Prospective Buyer to set up an account that will store home search preferences, contact information, and other financial or personal information that will aid the Prospective Buyer in finding a home on the web site.
2. Flow of Events
2.1 Basic Flow
This use case begins when the Prospective Buyer chooses to create a Personal Planner profile.
1. The system requests the Prospective Buyer to create a new profile if one does not already exist. If
a profile does exist, the customer is given the option to log on to the system.
2. The system prompts the customer to create a new profile. Profile information includes: name,
e-mail address, password, and a preference on receiving marketing news by e-mail.
3. The system creates the customer profile using the customer’s e-mail address as his logon ID.
When the new profile has been created, an e-mail message will be sent to the customer welcoming him to the system and providing access information and other details that can be changed on an “as-needed” basis.
4. The customer enters a default set of home search criteria and saves the information.
2.2 Alternative Flows
2.2.1 Duplicate Logon ID Exists
If, in the Basic Flow , the Prospective Buyer enters an e-mail address that already exists, then the system will assume that the user has already created a profile. The system will prompt the customer with a message that a profile already exists for the given e-mail address and asks if the user would like to create a new account using the existing account.
2.2.1.1 Prospective Buyer Forgets Password
If, in the Basic Flow , the Prospective Buyer forgets his password, the system will allow him to create a new one. The system will prompt the user for his logon ID (e-mail address), and the system will then
generate a new password and send it to the Prospective Buyer’s e-mail address that is used as the logon ID.
2.2.2 Invalid Format or Insufficient Information
If, in the Basic Flow , the Prospective Buyer has not specified sufficient information to create the customer profile, the system will prompt the actor for the missing information. The Prospective Buyer can either enter the missing information or choose to cancel the operation, at which point the use case ends.
3. Special Requirements
None.
4. Pre-Conditions
None.
5. Post-Conditions
None.
6. Extension Points
None.