1/28
Looks like no tags are added yet.
Use case description
what it is for
typical use case description templates/items
make fully developed use case descriptions for more complex use cases
typical use case description templates include:
Use case name
Scenario (if needed)
Triggering event - what event makes this use case happen?
Brief description
Actors
Related use cases (<<includes>>)
Stakeholders
Preconditions
Postconditions
Flow of activities
Exception conditions
example of a fully developed use case description for create customer account

UML activity diagram for use case of create customer account
shows the flow of activities ONLY!

use case description details
use case name
scenario
triggering event
brief description
actors
use case name
verb-noun
scenario
a use case can have more than one scenario (special case or more specific path)
triggering event
based on event decomposition technique
brief description
written previously when use case was identified
actors
one or more users from use case diagrams
use case instances
a unqiue set of internal activities within a use case
preconditions
what the state of the system must be for the use case to begin
what must be true for the use case to happen
post conditions
what must be true upon completion of the use case
use for planning test case expected results
what must happen to make this use case a success
Ex. in “open customer account,” → customer must be created and saved in the account subsystem, one or more addresses need to be saved, credit card info must be validated
stakeholders
anyone with an interest in the use case
related use cases «includes» —> use when _____
if one use case invokes or includes another
flow of activities
the activities that go on between actor and the system
aids in making activity diagram
exception conditions
where and what can go wrong
what can go wrong and how do we handle that?
activity diagram for ship items use case
note:
synchronization bar for loop
decision diamond

UML diagram for use case of fill shopping cart —> includes the «includes» relationship!

what is a system sequence diagram
models the interactions between external actors and a software system for a specific use case. It treats the entire system as a single "black box," focusing on input and output events without revealing internal classes, database structures, or code logic.
a UML sequence diagram
special case for a sequence diagram
only shows actor and one object
the one object represents the complete system
shows input and output messaging requirements for a use case
actor; system; object lifeline
messages
System Sequence Diagram (SSD) notation

Message Notation for SSD
“ * “ indicate ____
[ ] indicate ____
what happens if it evaluates to true vs false?
message-name = ______
parameter-list shows ______
return-value on same line, requiring := used to _____
[true/false condition] return-value := message-name (parameter-list)
An asterisk (*) indicates repeating or looping of the message
Brackets [ ] indicate a true/false condition. This is a test for that message only. If it evaluates to true, the message is sent. If it evaluates to false, the message isn’t sent.
Message-name is the description of the requested service written as a verb-noun.
Parameter-list (with parentheses on initiating messages and without parentheses on return messages) shows the data that are passed with the message.
Return-value on the same line as the message (requires :=) is used to describe data being returned from the destination object to the source object in response to the message.
what are lifelines aka object lifeline
vertical dashed lines connected to an actor or object!
shows the passage of time for the object
represent the messages that are sent by the actor!

Sample SSD diagram, fill in the blanks

detailed vs alternate notation for SSD message diagram example

loop frame
notation on a sequence diagram showing repeating messages (illustration A in flashcard before)
true/false condition
part of a message between objects that is evaluated prior to transmission to determine wheather the message can be sent
the * preceeding the condition indicates the message repeats as long as the condition evaluates to true! (example b in flashcard before)
steps for developing an SSD
1. Identify input message
See use case flow of activities or activity diagram
2. Describe the message from the external actor to the system using the message notation
Name it verb-noun: what the system is asked to do
Consider parameters the system will need
3. Identify any special conditions on input messages
Iteration/loop frame
Opt or Alt frame
4. Identify and add output return values
On message itself: aValue:= getValue(valueID)
As explicit return on separate dashed line
example SSD for ship items use case and customer account use case


CRUD technique for use cases
CRUD = create, read/report, update, delete
validate or refine use cases!
CRUD analysis serves to verify that all domain classes are fully supported by the new system, i.e. have use cases to fully process all required actions
a good cross-check against the existing set of use cases, used in database context
Allows u to cross check ur data model
If you can do these things, it will pass the CRUD technique
Ex. customer account
Can you create the account
Can you read the info on the account
Can you update the account info
Can you delete the account
ensure that all classes have a complete “cover” of use cases
not for primary identification of use cases
EX:

steps of CRUD analysis
1. Identify all domain classes
2. For each class verify that use cases exist to
Create a new instance
Update existing instances
Reads or reports on information in the class
Deletes or archives inactive instances
3. Add new use cases as required. Identify responsible stakeholders
4. Identify which application has responsibility for each action: which to create, which to update, which to use
example CRUD matrix with use cases and corresponding domain classes

parts of use cases and use case diagram
use cases
use case diagram
use case description
activity diagram
system sequence diagram (SSD)
parts of domain classes and diagram
domain classes
domain model class diagram
state machine diagram
workflow of integrating use case and domain model diagrams
