Use Cases and Activity
Use Cases and Activity
An Introduction to Use Cases and Activity Changing the way organizations change. Diagrams
Changing Change.
Develop the Professional. Develop the Profession.
International Institute of Business Analysis
Tom Karasmanis
How to Participate
Ask Questions!
Use the Question box Questions can be for a wide range of topics, from use cases to requirements to managing stakeholders to modeling Short questions please If the answer is too deep for this show, check the forum
Download this presentation and leave comments at
http://community.IIBA.org/TechnicalExcellence
4
International Institute of Business Analysis
Agenda
Use Cases & Scenarios The UML Use Case Diagram Sample Use Case: Rent Out Video The UML Activity Diagrams
5
International Institute of Business Analysis
W h e r e to b e g i n a n d fr a n k l y w h y b o th e r?
6
International Institute of Business Analysis
Main Points
Scenarios Use Cases Why Use Cases?
7
International Institute of Business Analysis
Scenarios
Definition
A sequence of steps (event flow) describing the interaction between one or more actors and the system in order to achieve a goal that yields a result of value to one or more stakeholders
8
International Institute of Business Analysis
Scenarios
Mandatory Parts
Name (unique) Actor Goal Trigger Event(s) Flow of Events
Recommended Parts
Brief Description Pre-conditions Post-conditions
Optional Parts
Other Requirements Notes
9
Use Cases
Definition
A collection of scenarios (one or more) A collection of sequences of steps (event flows) describing the interaction between one or more actors and the system in order to achieve a goal that yields a result of value to one or more stakeholders
10
International Institute of Business Analysis
Use Cases
Mandatory Parts
Name Actor Brief Description Goal Pre-conditions Trigger Event(s) Post-conditions Flows of Events Optional Parts Basic, Alternative Other Requirements Notes
Recommended Parts
11
International Institute of Business Analysis
Stakeholder Coverage
Actors map to stakeholders and use cases are their goals
Requirements Coverage
Are all business objectives met in requirements (solution components)?
12
International Institute of Business Analysis
Traceability
Good focal point for traceability between stakeholder requests and detailed requirements and business rules
14
International Institute of Business Analysis
Iterative Development
Used to drive scope of each iterations
Be h a vi o u ral M o d e l i n g
16
International Institute of Business Analysis
Main Points
Key Elements Actors Use Cases Subject Samples
17
International Institute of Business Analysis
Key Elements
Actor, Actor Name Use Case, Use Case Name Actor-Use Case Communication Subject, Subject Name, Subject Boundary
18
International Institute of Business Analysis
19
International Institute of Business Analysis
20
International Institute of Business Analysis
Residential Customer
Commercial Customer
21
International Institute of Business Analysis
Customer
22
International Institute of Business Analysis
Residential Customer
Commercial Customer
23
International Institute of Business Analysis
R e n t O u t Vi d e o
24
International Institute of Business Analysis
Main Points
Sample Text Sample Use Case Diagram Basic Flow Alternate Flows
25
International Institute of Business Analysis
In scope
26
International Institute of Business Analysis
Goal
To rent out Customer videos
27
International Institute of Business Analysis
Brief Description
The Cashier identifies the Customer to the system as a Member, then enters each videos unique identifier. Once the videos have all been entered, the Cashier totals the sale and enters the Customers payment information. The system prints the receipt and rental agreement for the Customer to sign.28
International Institute of Business Analysis
Scenarios
Member rents video by cash Member rents video by debit card Customer is not a member Video is not in system Cashier cancels sale
29
International Institute of Business Analysis
Scenarios (Grouped)
Member rents video by cash Member rents video by debit card Video not rented
Customer is not a member Video is not in system Cashier cancels sale
30
International Institute of Business Analysis
In scope
Secondary Actor
Preconditions
The Cashier is signed in to the system.
32
International Institute of Business Analysis
Post-conditions
The sale is completed and for each entered video, it is marked as out, payment has been received for the standard rental period, and inventory has been adjusted. No sale is recorded, no videos are marked as out, no payment is received, and no inventory 33 adjustments have been made.
International Institute of Business Analysis
Basic Flow 1 . The use case begins when the Cashier starts a new sale. 2 . The Cashier identifies the Customer to the system. Repeat steps 3-4 for each video to be scanned. 3 . The Cashier enters the video identification number. 4 . The system validates the video identification number, retrieves and presents the video title, standard rental period, and rental rate, then refreshes the subtotal. 5 . Once all videos have been entered, the Cashier totals the sale.
34
International Institute of Business Analysis
Alternative Flows A . In step 2 the system determines that the Customer is not a member. 1. The system presents an appropriate error message to the Cashier. 2. The use case terminates with no sale completed. B . In step 3 the system does not recognize the video identification number. 1. The system presents an appropriate error message to the Cashier. 2. The use case continues with step 3.
36
International Institute of Business Analysis
Alternative Flows C . In step 7, the Customer pays by Debit Card. 1. The Cashier indicates to the system that this is a debit sale. 2. The system activates the debit device, displays the total, and prompts for confirmation. 3. The Customer confirms the total and selects the source account (chequing, savings). 4. The Customer authorizes the payment. 5. The system validates all payment information and obtains authorization from the Electronic Payment Server . 6. The use case continues with step 9.
37
International Institute of Business Analysis
In scope
Newly discovered
Alternative Flows D . In step 8, the system calculates that the amount of cash tendered is not sufficient to cover the sale. 1. The system presents an appropriate error message to the Cashier indicating the amount still owing from the Customer. 2. The use case continues with step 7.
39
International Institute of Business Analysis
Alternative Flows E . At any point between steps 2 and 8, the Cashier cancels the sale. 1. The system prompts for confirmation. 2. The Cashier confirms the cancellation. 3. The use case terminates. F . At any point after the sale begins and before the system updates inventory, the Cashier cancels the sale. The is the same as Alternate Flow E, just worded in a more casual way. If this is clearer to the stakeholders and audience of the use case, then use this format.
40
International Institute of Business Analysis
Z u m b a Wo r kfl o w M o d e l i n g
41
International Institute of Business Analysis
Main Points
Key Elements Activities Decisions Partitions Rent Out Video Examples
42
International Institute of Business Analysis
Key Elements
Activity Node (Activity), Start, End Decision (Branch), Merge (Unbranch) Transition, Guard Condition Synchronization Bar, Fork, Join Concurrent / Alternative Threads Partition, Swim Lane Object Flow Accept Event Action, Send Signal Action, Accept Time Event Action
43
International Institute of Business Analysis
44
International Institute of Business Analysis
45
International Institute of Business Analysis
46
International Institute of Business Analysis
Activity Diagram
sd Dynamic View New Sale [Yes] Identify Customer Enter Video ID Update Sales [No] More Videos? Update Subtotals
Sale Completed
47
International Institute of Business Analysis
Activity Diagram
act With Partitions New Sale Cashier [Yes] Identify Customer Enter Video ID More Videos? Enter Cash Receiv ed
Update Subtotals
Sale Completed
48
International Institute of Business Analysis
Activity Diagram
act With Alt Flow s New Sale Enter Video ID Update Subtotals [Yes] [No] Thanks & Goodbye No Sale More Videos? Identify Customer
Cashier
[Member] System Validate Video ID [No Video] [Not a Member] Update Sales [Video Found]
Validate Membership
49
International Institute of Business Analysis
IIBA.org/Webinar
50
International Institute of Business Analysis
How to Participate
Ask Questions!
Use the Question box Questions can be for a wide range of topics, from use cases to requirements to managing stakeholders to modeling Short questions please If the answer is too deep for this show, check the forum Download this presentation and leave comments at
http://community.IIBA.org/TechnicalExcellence
51
International Institute of Business Analysis
Tom Karasmanis
http://community.IIBA.org/TechnicalExcellence
.
@t0mkar
If you have questions, concerns or comments about this webinar, please contact [email protected].
International Institute of Business Analysis
.
52
52