15CSE202 Object Oriented Programming: OO Analysis With Use Case
15CSE202 Object Oriented Programming: OO Analysis With Use Case
15CSE202 Object Oriented Programming: OO Analysis With Use Case
Actors
Trigger
Precondition
Flow
• You need to define the flow of the process
that starts when a use case is started.
• The flow needs to detail how the
communication will flow, who the
information will be displayed to, what they
need to do, and where the primary actor
will end up.
15CSE202 Object oriented Programming
Flow - contd
• 3 things which you need to mention when writing the
flow.
– Basic Flow: best case scenario of what should
happen in the use case if all the conditions are met
– Alternates: Are there any alternate routes that the
action can be done?
– Exceptions: This dictates what happens when a
failure occurs in the flow.
• Exceptions are just as important to define as basic flow.
15CSE202 Object oriented Programming
Level
Stakeholders
• Who are the people that are going to be affected
by the use case?
• There’s no way to write a good process if you do
now know who will be affected because only
when you know all the people involved will you be
able to ensure that your design does everything
that it needs to do.
15CSE202 Object oriented Programming
Description:
A customer arrives to acquire the vehicle and depart
for desired destination. The vehicle reservation
contract is signed and the vehicle is released to the
customer.
• Preconditions:
– The person who generates the request needs to
have an active internet connection
– The website needs to be accessible by the customer
– The support agent needs to have an active internet
connection
• Basic Flow
1. The customer visits the support website
2. The customer clicks the “generate support ticket
button”
3. The customer is taken to a page where they are told
that support will be present shortly.
15CSE202 Object oriented Programming
• Alternates:
– The customer asks to be contacted over the phone
– The customer might request someone come to their
home to help them with the product
• Exception:
– The customer loses their internet connection between
the chat. They are then shown an error message.
– The customer service representative accidentally
closes the chat window, ending the support session.
The customer is informed that another representative
will be with them shortly.
15CSE202 Object oriented Programming
• Level:
– Customer complaints
– General Feedback
• Trigger : customer clicks the button on the website to
generate a support ticket
• Stakeholders:
– The Customer Support Department – The whole
department’s purpose is to ensure customer
satisfaction.
– The Sales Department – If the customer is unable to
get their problem fixed they might want to return the
product, which will be a loss for the sales department.
15CSE202 Object oriented Programming
Things to remember
Reminder 1. A use case is a prose essay
Reminder 2. Make the use case easy to read (active
voice).
Reminder 3. Just one sentence form
Reminder 4. Include sub use cases
Reminder 5. Keep the GUI out
Reminder 6. Mandatory two endings
15CSE202 Object oriented Programming
Reference book