Beruflich Dokumente
Kultur Dokumente
A use case is a scenario that describes the use of a system by an actor to accomplish a specific goal. An actor is a user playing a role with respect to the system. - people, other systems. Scenario A sequence of steps that describe the interactions between an actor and the system. The use case model consists of the collection of all actors and all use cases.
Customer
Loses a Tape
<<extends>>
Buy a Tape
User-appropriate volume
Large systems: no more than 70-80 use cases Small number of use cases forces abstraction
Student
Registration Clerk
Bursars office
Student Billing
Instructor
Use-Case Diagram
Extends: extension to or variation of a use-case that exists in its own right
Customer
Applicant
Hire Employee
<<uses>>
Supplier
Reorder supplies
Manager
<<uses>>
Track sales and inv. data Produce mgt. reports
Uses: factors common behavior amongst multiple use-cases into a generalized use-case.
Step 3:Use Case sequence of actions Step4: Identifying use case dependencies Step5: Use case alternate course of actions Step6: Finding Potential Objects
Nouns in use case
Step7: Selecting proposed Objects Class Diagram (Object Association Model, Object Relationship Model)
Actor: Customer
- Are there events that the actor must tell system about?
- Change of address
Actor: Customer
- Are there events that the actor must tell system about?
- Change of address
Other actors:
Clerk adds a new film to the system It is time to order more films manager wants to know which films are popular so as to get extra copies Store orders 10 new copies of film; when they arrive, clerk adds them to system and puts them on shelf Manager wants to know if he is making money
thinking of these may lead to some more customer use cases: - Customer wants to know new movies in the store.
Customer wants to find every movie starring a specific actor Customer wants to find movies with same director as the last film she rented Manager wants to put together list of movies rated G.
Use cases to manage the attributes: Clerk adds new film to system Clerk removes obsolete film from system Clerk updates information about a film
The customer reports to the clerk that he has lost a tape. The clerk prints out the rental record and asks customer to speak with the manager, who will arrange for the customer to pay a fee. The system will be updated to reflect lost tape, and customers record is updated as well. The manager may authorize purchase of a replacement tape.
Scenarios: a use case scenario shows the flow of events in a particular instance of a use case.
focussed on the business problem, not the solution - shows most common situation - can have greater or less detail as required to understand flow of interactions and events - also consider exceptional rather than the normal situations.
Scenario guidelines
how does the scenario begin? what causes it to end? - what is the distinction between what the actors do and how the system responds - what feedback will the actor receive? - which activities may repeat, and what causes them to stop? Is there conditional branching in the flow of the scenario?
- Post-conditions: state of system and perhaps for actors, after the use case is completed
Orders SubSystem Submit Regular Order Member Services Department Past Member Club Member Submit Promotion Order Request Membership rpts Submit subscription renewal Create new subscription program Marketing Department Submit New Send subscription Send new Subscription renewal offer subscription offer Membership System Create New Seasonal Promotion Create New Monthly Promotion Request Promotion Reports Request Sales Reports
Potential Member
Promotions SubSystem
depends on
subscription renewal
depends on depends on OR
Potential Member
Initiates
Past Member
Initiates
Initiates
Marketing Department
Initiates
Create New Monthly Promotion Create New Seasonal Promotion Create New Subscription Program Request Promotion Reports Request Sales Reports
Initiates
Send New Subscription Offer Send Club Promotion Send Subscription Renewal
Normal Course
Submit Promotion Order Club Member Describes the process when a club member submits a club promotion order to either indicate the products they are interested in ordering or declining to order during this promotion 1. This use is initiated when the club member submits the promotion order to be proceeded 2. The club member's personal information such as address is validated against what is currently recorded in member services 3. The promotion order is verified to see if product is being ordered 4. The club member's credit status is checked with Accounts Receivable to make sure no payments are outstanding 5. For each product being ordered, validate the product number 6. For each product being ordered, check the availability in inventory and record the ordered information which includes "quantity being ordered" and give each ordered product a status of "open" 7. Create a Picking Ticket for the promotion order containing all ordered products which have a status "open" 8. Route the picking ticket to the warehouse Use case send club promotion has been processed Promotion order has been recorded and the picking ticket has been routed to the warehouse
Submit Promotion Order Club Member Describes the process when a club member submits a club promotion order to either indicate the products they are interested in ordering or declining to order during this promotion 1. This use is initiated when the club member submits the promotion order to be proceeded 2. The club member's personal information such as address is validated against what is currently recorded in member services 3. The promotion order is verified to see if product is being ordered 4. The club member's credit status is checked with Accounts Receivable to make sure no payments are outstanding 5. For each product being ordered, validate the product number 6. For each product being ordered, check the availability in inventory and record the ordered information which includes "quantity being ordered" and give each ordered product a status of "open" 7. Create a Picking Ticket for the promotion order containing all ordered products which have a status "open" 8. Route the picking ticket to the warehouse 2. If the club member has indicated an address or telephone number change on the promotion order, update the club member's record with the new information 3. If the club member is not ordering product at this time, modify the promotion order's status to be "closed" and modify the selection of the month ordered product's record to have a status of "rejected", then cancel the transaction 4. If Account Receivable returns a credit status that the customer is in arrears, invoke abstract use case Send Order Rejection Notice Modify the promotion's order's status to be "on hold pending payment" 5. a) If the product number is not valid, create an Order Error Report containing the club member's information, the promotion order information, and the product number in error. Each completed report will be routed to a Member Services clerk for resolution. b) If the club member is not ordering the selection of the month, modify the ordered product's record to have a status of "rejected" 6. If the product being ordered is not available, record the ordered product information which includes "quantity being ordered" and give a status of "backordered" 7. If there are no ordered product records with a status "open", cancel the transaction Use case send club promotion has been processed Promotion order has been recorded and the picking ticket has been routed to the warehouse
ALTERNATE COURSE
POTENTIAL OBJECT LIST Club Member Potential Member Past Member Member Services Department Marketing Department Member Services System Member Address Promotion Order Product Product Inventory Order Quantity Ordered Product Credit Status Payments Ordered Product Status Picking Ticket Warehouse Member Telephone Number Selection of Month Transaction Accounts Receivable Promotion Order Status Order Error Report Member Services Clerk
POTENTIAL OBJECT LIST Club Member Potential Member Past Member Member Services Department Marketing Department Member Services System Member Address Promotion Order Product Product Inventory Order Quantity Ordered Product Credit Status Payments Ordered Product Status Picking Ticket Warehouse Member Telephone Number Selection of Month Transaction Accounts Receivable Promotion Order Status Order Error Report Member Services Clerk
X X X X X X X X X X X X X X X X X
REASON Type of "MEMBER" Type of "MEMBER" Type of "MEMBER" Not relevant for current project Not relevant for current project Not relevant for current project Attribute of "MEMBER" Result of an event named "PROMOTION" Type of "MEMBER ORDER" "PRODUCT" Attribute of "PRODUCT" Attribute of " MEMBER ORDER" "PRODUCT ON ORDER" Attribute of "MEMBER" Out of Scope Attribute of "PRODUCT ON ORDER" Potential interface item Not relevant for current project Attribute of "MEMBER" Type of "TITLE" Not relevant for current project Not relevant for current project Attribute of "MEMBER ORDER" Potential interface item Not relevant for current project
Club Member
Promotion order
Past Member regular order
New Subscription
Potential Member
A/C Receivable DB
Warehouse
Marketing Dept.