SlideShare ist ein Scribd-Unternehmen logo
1 von 48
UML Lecture Series UML SIG Requirements Modeling  (Use Case Diagram + Use Case Description)   UML Lecture Series Requirements Modeling  (Use Case Diagram + Use Case Description)
Session Objectives ,[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Keywords used in this lecture
Thoughts to Ponder … To my knowledge, no other software engineering language construct as significant as use cases has been adopted so quickly and so widely among practitioners. I believe this is because use cases play a role in so many different aspects of software engineering. Ivar Jacobson Founding Father of UML and  Creator of Use Case Diagram
Functional vs. Non-Functional Requirements  Functional Non-Functional Functional requirement  are user ‘visible’ features and are typically initiated by stakeholders of the system – generate  report, login, etc.  Non-functional requirements  are ‘non-visible’ features and  but required for a effective running of an application – security,  backup, etc.
Session Objectives ,[object Object],[object Object],[object Object],[object Object],[object Object]
Use Case Diagram Definition: A diagram that shows a set of use cases and actors and their relationships. Use cases represent system functionality, the requirements of the system from the  user’s perspective .
Notations use case  A description of a set of sequences of actions, including variants, that system performs that yields an observable value to an actor.  actor The people or systems that provide or receive information from the system; they are among the stakeholders of a system. include Specifies that the source use case explicitly incorporates the behaviour of another use case at a location specified by the source extend  Specifies that the target use case extends the behaviour of the source. <<include>> <<extend>>
Actors Actors Could be human beings, other systems, timers and clocks or hardware devices. Actors that stimulate the system and are the initiators of events are called primary actors (active) Actors that only receive stimuli from the system are called secondary actors (passive)
Actors Actors Who/what will be interested in the system? Who/what will want to change the data in the system? Who/what will want to interface with the system? Who/what will want information from the system?
Use Case Diagram – Guidelines & Caution ,[object Object],[object Object],2.  Avoid showing communication between actors. ,[object Object],4.  Do NOT show behaviour in a use case diagram; instead only depict only system functionality. 5.  Use case diagram does not show sequence – unlike DFDs.
Example – Include and Extend
The use of include and extend is discouraged simply because they add unnecessary complexity to a Use Case diagram. Since the primary purpose of use cases is to show user centred functionality, the precedence of use cases takes little importance.  Include and Extend
Quiz 1 Which use case is NOT valid?
Quiz 2 Identify TWO(2) mistakes
Granularity of Use Cases Add reference Remove reference Search for reference User List references Fine Grained or Course Grained?
Granularity of Use Cases Manage Reference User Generally, a use case should embody sufficient levels of granularity without which the use case may not be rendered as useful.
Session Objectives ,[object Object],[object Object],[object Object],[object Object],[object Object]
Mistake 1
Mistake 2
Mistake 3
Mistake 4
Mistake 5
Discussion Exercise   Inventory System In order to generate an invoice a clerk  must log in. If a clerk is a first time user, one must have themselves  registered. There should be an option for a user to register oneself within the login page. Any user can use the system to view products online. The option of login is also provided when a user views products online. Draw a use case diagram for the scenario below:
Exercise - Solution
Session Objectives ,[object Object],[object Object],[object Object],[object Object],[object Object]
Use Case Specification Is a use case diagram  alone sufficient in capturing  user requirements?
Use Case Specification
Use Case Specification Use case specification is synonymous to use case description  and use case definition and can used interchangeably. Use case specification defines information that pertains to a  particular use case which is important in understanding the  purpose behind the use case.  Use case specification is written for every use case. A use case specification has one or more  flow of events or  pathways  association with it.
Flow of Events / Pathways A flow of events or pathway is a  textual description  embodying  sequence of events with regards to the use case and is part of  the use case specification. Flow of events is understood by the customer.  A detailed  description is necessary  so that one can better understand the  complexity that might be involved in realising the use cases.
Flow of Events / Pathways Flow of events describes how and when the use case starts  and ends, when the use case interacts with the actors, and the  information exchanged between an actor and the use case. Flow of events is derived from a  what  perspective, NOT how  perspective. Hence, specific information like: interface details  and technical specifications should NOT be included in a use  case description.  Use case description serves as a  ‘bridge’  between stakeholders of a system and the development team.
Flow of Events / Pathways Use case description serves as a  ‘bridge’  between stakeholders of a system and the development team. Use Case  Diagram Use Case Specification Programmers look at use case specification to understand complete requirements - SRS Systems analyst produce use case diagram & use case  specification in consultation  with end users
Flow of Events / Pathways Flow of Events Describes how and when use case starts and ends. Does NOT describe user interface details. Is generally a text-based file that is included under its use case in Rational Rose/Visual Paradigm
Types Flow of Events / Pathways Types of  Flow of Events Basic Flow of Events@ Happy Path  - is the most common pathway. It usually depicts a perfect situation, in which nothing goes wrong. Alternate Flow of Events @ Alternate Pathway  - is a pathway that is still considered a good pathway; it’s just not the most heavily travelled one Exception Flow of Events @ Exception Pathways @ Unhappy Pathway  – things don’t always go as planned. An exception is an error condition that is important enough to the application to capture.
Types Flow of Events / Pathways Basic Flow of Events@ Happy Path  – You get to the ATM and successfully withdraw money  Alternate Flow of Events @ Alternate Pathway  - You get to the ATM but could not withdraw money due to insufficient funds in your account.  Exception Flow of Events @ Exception Pathways @ Unhappy Pathway  – You get to the ATM machine but your valid pin number is not accepted.
See Example Word Document on Use Case Specification based on Remulak Productions Use Case Specifications - Example
Review Questions
Review Question A use case specification cannot be done for an included use case.  True False
Review Question Use case specification together with a use case diagram become part of what is know as system requirements specification (SRS) True False
Review Question Although non-functional requirements (i.e shadow use cases) are not “technically speaking” a use case, are still considered a use case to acknowledge the importance it has in the overall system. True False
Review Question Basic Flow of Events @ Happy Path is a series of events that happens some of the time True False
Review Question Alternate Flow of Events @ Alternate Pathway is a series of events that happens all the time True False
Review Question Exception Flow of Events @ Exception Pathway is a series of events that is impossible to happen. True False
Review Question Both use case diagram and use case specification should not be too detailed. True False
Use Case Diagram - In Class Exercise Write use case specification based on the case diagram for Inventory System.
Summary ,[object Object],[object Object],[object Object]
Further Reading http://download.boulder.ibm.com/ibmdl/pub/software/dw/rationaledge/jan03/UseCaseFAQS_TheRationalEdge_Jan2003.pdf Use Case FAQs
Reference Jacobson I. 2003, “ Use Case – Yesterday, Today and Tomorrow ”, The Rational Edge, IBM

Weitere ähnliche Inhalte

Was ist angesagt?

UML Diagram @ Software engineering discussion
UML Diagram @ Software engineering discussionUML Diagram @ Software engineering discussion
UML Diagram @ Software engineering discussionCherryBerry2
 
Object-Oriented Analysis And Design With Applications Grady Booch
Object-Oriented Analysis And Design With Applications Grady BoochObject-Oriented Analysis And Design With Applications Grady Booch
Object-Oriented Analysis And Design With Applications Grady BoochSorina Chirilă
 
Lecture 12 requirements modeling - (system analysis)
Lecture 12   requirements modeling - (system analysis)Lecture 12   requirements modeling - (system analysis)
Lecture 12 requirements modeling - (system analysis)IIUI
 
Sequence diagram
Sequence diagramSequence diagram
Sequence diagramRahul Pola
 
Uml Presentation
Uml PresentationUml Presentation
Uml Presentationmewaseem
 
Interaction Modeling
Interaction ModelingInteraction Modeling
Interaction ModelingHemant Sharma
 
Component and Deployment Diagram - Brief Overview
Component and Deployment Diagram - Brief OverviewComponent and Deployment Diagram - Brief Overview
Component and Deployment Diagram - Brief OverviewRajiv Kumar
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagramsbarney92
 
Se2 lec 13 uml state machines
Se2 lec 13  uml state machinesSe2 lec 13  uml state machines
Se2 lec 13 uml state machinesAmr E. Mohamed
 
Unified process model
Unified process modelUnified process model
Unified process modelRyndaMaala
 

Was ist angesagt? (20)

UML Diagram @ Software engineering discussion
UML Diagram @ Software engineering discussionUML Diagram @ Software engineering discussion
UML Diagram @ Software engineering discussion
 
Uml class-diagram
Uml class-diagramUml class-diagram
Uml class-diagram
 
Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
 
UML Diagrams
UML DiagramsUML Diagrams
UML Diagrams
 
Presentation on uml
Presentation on umlPresentation on uml
Presentation on uml
 
Sequence Diagram
Sequence DiagramSequence Diagram
Sequence Diagram
 
Object-Oriented Analysis And Design With Applications Grady Booch
Object-Oriented Analysis And Design With Applications Grady BoochObject-Oriented Analysis And Design With Applications Grady Booch
Object-Oriented Analysis And Design With Applications Grady Booch
 
Lecture 12 requirements modeling - (system analysis)
Lecture 12   requirements modeling - (system analysis)Lecture 12   requirements modeling - (system analysis)
Lecture 12 requirements modeling - (system analysis)
 
Sequence diagram
Sequence diagramSequence diagram
Sequence diagram
 
Uml Presentation
Uml PresentationUml Presentation
Uml Presentation
 
UML
UMLUML
UML
 
Use Case Modeling
Use Case ModelingUse Case Modeling
Use Case Modeling
 
Class diagrams
Class diagramsClass diagrams
Class diagrams
 
Interaction Modeling
Interaction ModelingInteraction Modeling
Interaction Modeling
 
Component and Deployment Diagram - Brief Overview
Component and Deployment Diagram - Brief OverviewComponent and Deployment Diagram - Brief Overview
Component and Deployment Diagram - Brief Overview
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagrams
 
Sequence diagram
Sequence diagramSequence diagram
Sequence diagram
 
Se2 lec 13 uml state machines
Se2 lec 13  uml state machinesSe2 lec 13  uml state machines
Se2 lec 13 uml state machines
 
Unified process model
Unified process modelUnified process model
Unified process model
 
Introduction to UML
Introduction to UMLIntroduction to UML
Introduction to UML
 

Andere mochten auch

Personas, Scenarios, User Stories, Use Cases (IxDworks.com)
Personas, Scenarios, User Stories, Use Cases (IxDworks.com)Personas, Scenarios, User Stories, Use Cases (IxDworks.com)
Personas, Scenarios, User Stories, Use Cases (IxDworks.com)Valeria Gasik
 
Software Engineering :Behavioral Modelling - I Sequence diagram
Software Engineering :Behavioral Modelling - I Sequence diagram Software Engineering :Behavioral Modelling - I Sequence diagram
Software Engineering :Behavioral Modelling - I Sequence diagram Ajit Nayak
 
Software Engineering :UML class diagrams
Software Engineering :UML class diagramsSoftware Engineering :UML class diagrams
Software Engineering :UML class diagramsAjit Nayak
 
UML Part1-Introduction Mansouri
UML Part1-Introduction MansouriUML Part1-Introduction Mansouri
UML Part1-Introduction MansouriMansouri Khalifa
 
Software Engineering an Introduction
Software Engineering an IntroductionSoftware Engineering an Introduction
Software Engineering an IntroductionAjit Nayak
 
Software Engineering : Requirement Analysis & Specification
Software Engineering : Requirement Analysis & SpecificationSoftware Engineering : Requirement Analysis & Specification
Software Engineering : Requirement Analysis & SpecificationAjit Nayak
 
Software Engineering :Behavioral Modelling - II State diagram
Software Engineering :Behavioral Modelling - II State diagramSoftware Engineering :Behavioral Modelling - II State diagram
Software Engineering :Behavioral Modelling - II State diagramAjit Nayak
 
Software Engineering : OOAD using UML
Software Engineering : OOAD using UMLSoftware Engineering : OOAD using UML
Software Engineering : OOAD using UMLAjit Nayak
 

Andere mochten auch (11)

Personas, Scenarios, User Stories, Use Cases (IxDworks.com)
Personas, Scenarios, User Stories, Use Cases (IxDworks.com)Personas, Scenarios, User Stories, Use Cases (IxDworks.com)
Personas, Scenarios, User Stories, Use Cases (IxDworks.com)
 
Roos Van Leary
Roos Van LearyRoos Van Leary
Roos Van Leary
 
Software Engineering :Behavioral Modelling - I Sequence diagram
Software Engineering :Behavioral Modelling - I Sequence diagram Software Engineering :Behavioral Modelling - I Sequence diagram
Software Engineering :Behavioral Modelling - I Sequence diagram
 
Software Engineering :UML class diagrams
Software Engineering :UML class diagramsSoftware Engineering :UML class diagrams
Software Engineering :UML class diagrams
 
UML Part1-Introduction Mansouri
UML Part1-Introduction MansouriUML Part1-Introduction Mansouri
UML Part1-Introduction Mansouri
 
Software Engineering an Introduction
Software Engineering an IntroductionSoftware Engineering an Introduction
Software Engineering an Introduction
 
Software Engineering : Requirement Analysis & Specification
Software Engineering : Requirement Analysis & SpecificationSoftware Engineering : Requirement Analysis & Specification
Software Engineering : Requirement Analysis & Specification
 
Uml - An Overview
Uml - An OverviewUml - An Overview
Uml - An Overview
 
Types of UML diagrams
Types of UML diagramsTypes of UML diagrams
Types of UML diagrams
 
Software Engineering :Behavioral Modelling - II State diagram
Software Engineering :Behavioral Modelling - II State diagramSoftware Engineering :Behavioral Modelling - II State diagram
Software Engineering :Behavioral Modelling - II State diagram
 
Software Engineering : OOAD using UML
Software Engineering : OOAD using UMLSoftware Engineering : OOAD using UML
Software Engineering : OOAD using UML
 

Ähnlich wie Use Case Diagram

Intro to UML - Use Case diagrams
Intro to UML - Use Case diagramsIntro to UML - Use Case diagrams
Intro to UML - Use Case diagramsjsm1979
 
Lab 3 Introduction to the UML - how to create a use case diagram
Lab 3 Introduction to the UML - how to create a use case diagramLab 3 Introduction to the UML - how to create a use case diagram
Lab 3 Introduction to the UML - how to create a use case diagramFarah Ahmed
 
Software Requirements Engineering Methodologies
Software Requirements Engineering MethodologiesSoftware Requirements Engineering Methodologies
Software Requirements Engineering MethodologiesKiran Munir
 
Presentation Use Case Diagram and Use Case Specification.pptx
Presentation Use Case Diagram and Use Case Specification.pptxPresentation Use Case Diagram and Use Case Specification.pptx
Presentation Use Case Diagram and Use Case Specification.pptxazida3
 
Sadcw 7e chapter03-done(1)
Sadcw 7e chapter03-done(1)Sadcw 7e chapter03-done(1)
Sadcw 7e chapter03-done(1)LamineKaba6
 
Chapter 3.pptx
Chapter 3.pptxChapter 3.pptx
Chapter 3.pptxTekle12
 
Lesson02_Use Case Diagrams
Lesson02_Use Case DiagramsLesson02_Use Case Diagrams
Lesson02_Use Case DiagramsMarwa Ali Eissa
 
Use Case Analysis and Diagramming
 Use Case Analysis and Diagramming Use Case Analysis and Diagramming
Use Case Analysis and DiagrammingOrnella Dunn
 
Quality Assurance. Quality Assurance Approach. White Box
Quality Assurance. Quality Assurance Approach. White BoxQuality Assurance. Quality Assurance Approach. White Box
Quality Assurance. Quality Assurance Approach. White BoxKimberly Jones
 

Ähnlich wie Use Case Diagram (20)

Use Cases
Use CasesUse Cases
Use Cases
 
Use Cases
Use CasesUse Cases
Use Cases
 
Intro to UML - Use Case diagrams
Intro to UML - Use Case diagramsIntro to UML - Use Case diagrams
Intro to UML - Use Case diagrams
 
Lab 3 Introduction to the UML - how to create a use case diagram
Lab 3 Introduction to the UML - how to create a use case diagramLab 3 Introduction to the UML - how to create a use case diagram
Lab 3 Introduction to the UML - how to create a use case diagram
 
Software Requirements Engineering Methodologies
Software Requirements Engineering MethodologiesSoftware Requirements Engineering Methodologies
Software Requirements Engineering Methodologies
 
Presentation Use Case Diagram and Use Case Specification.pptx
Presentation Use Case Diagram and Use Case Specification.pptxPresentation Use Case Diagram and Use Case Specification.pptx
Presentation Use Case Diagram and Use Case Specification.pptx
 
Sadcw 7e chapter03-done(1)
Sadcw 7e chapter03-done(1)Sadcw 7e chapter03-done(1)
Sadcw 7e chapter03-done(1)
 
Chapter 3.pptx
Chapter 3.pptxChapter 3.pptx
Chapter 3.pptx
 
Usecase Presentation
Usecase PresentationUsecase Presentation
Usecase Presentation
 
Lesson02_Use Case Diagrams
Lesson02_Use Case DiagramsLesson02_Use Case Diagrams
Lesson02_Use Case Diagrams
 
How to write use cases
How to write use casesHow to write use cases
How to write use cases
 
Defining The System
Defining The SystemDefining The System
Defining The System
 
Session07-Diagram.pdf
Session07-Diagram.pdfSession07-Diagram.pdf
Session07-Diagram.pdf
 
Chapter5
Chapter5Chapter5
Chapter5
 
Use Case Analysis and Diagramming
 Use Case Analysis and Diagramming Use Case Analysis and Diagramming
Use Case Analysis and Diagramming
 
Ooad quest and ans
Ooad quest and ansOoad quest and ans
Ooad quest and ans
 
chapter_5_5.ppt
chapter_5_5.pptchapter_5_5.ppt
chapter_5_5.ppt
 
Use Case approach
Use Case approachUse Case approach
Use Case approach
 
Ch05
Ch05Ch05
Ch05
 
Quality Assurance. Quality Assurance Approach. White Box
Quality Assurance. Quality Assurance Approach. White BoxQuality Assurance. Quality Assurance Approach. White Box
Quality Assurance. Quality Assurance Approach. White Box
 

Mehr von Ashesh R

Sukhi parivaar web launch
Sukhi parivaar web launchSukhi parivaar web launch
Sukhi parivaar web launchAshesh R
 
Open source
Open sourceOpen source
Open sourceAshesh R
 
Managing onlinebusiness
Managing onlinebusinessManaging onlinebusiness
Managing onlinebusinessAshesh R
 
Presentation on Gifts
Presentation on GiftsPresentation on Gifts
Presentation on GiftsAshesh R
 
Internet for everyone
Internet for everyoneInternet for everyone
Internet for everyoneAshesh R
 
Influenza A H1 N1 Mexa
Influenza A H1 N1 MexaInfluenza A H1 N1 Mexa
Influenza A H1 N1 MexaAshesh R
 
Internet Pour Tous
Internet Pour TousInternet Pour Tous
Internet Pour TousAshesh R
 
Intellectual Property Rights - Mauritian Legislation
Intellectual Property Rights - Mauritian LegislationIntellectual Property Rights - Mauritian Legislation
Intellectual Property Rights - Mauritian LegislationAshesh R
 
Activity Diagram
Activity DiagramActivity Diagram
Activity DiagramAshesh R
 
UML Case Tools
UML Case ToolsUML Case Tools
UML Case ToolsAshesh R
 
Pascal Programming Session 1
Pascal Programming Session 1Pascal Programming Session 1
Pascal Programming Session 1Ashesh R
 
Problem Solving Techniques
Problem Solving TechniquesProblem Solving Techniques
Problem Solving TechniquesAshesh R
 
Cybercrime And Computer Misuse Cases
Cybercrime And Computer Misuse CasesCybercrime And Computer Misuse Cases
Cybercrime And Computer Misuse CasesAshesh R
 
National Geographic
National GeographicNational Geographic
National GeographicAshesh R
 
E Recruitment
E RecruitmentE Recruitment
E RecruitmentAshesh R
 
Reflections
ReflectionsReflections
ReflectionsAshesh R
 

Mehr von Ashesh R (18)

Sukhi parivaar web launch
Sukhi parivaar web launchSukhi parivaar web launch
Sukhi parivaar web launch
 
Open source
Open sourceOpen source
Open source
 
Web2.0
Web2.0Web2.0
Web2.0
 
Linux
LinuxLinux
Linux
 
Managing onlinebusiness
Managing onlinebusinessManaging onlinebusiness
Managing onlinebusiness
 
Presentation on Gifts
Presentation on GiftsPresentation on Gifts
Presentation on Gifts
 
Internet for everyone
Internet for everyoneInternet for everyone
Internet for everyone
 
Influenza A H1 N1 Mexa
Influenza A H1 N1 MexaInfluenza A H1 N1 Mexa
Influenza A H1 N1 Mexa
 
Internet Pour Tous
Internet Pour TousInternet Pour Tous
Internet Pour Tous
 
Intellectual Property Rights - Mauritian Legislation
Intellectual Property Rights - Mauritian LegislationIntellectual Property Rights - Mauritian Legislation
Intellectual Property Rights - Mauritian Legislation
 
Activity Diagram
Activity DiagramActivity Diagram
Activity Diagram
 
UML Case Tools
UML Case ToolsUML Case Tools
UML Case Tools
 
Pascal Programming Session 1
Pascal Programming Session 1Pascal Programming Session 1
Pascal Programming Session 1
 
Problem Solving Techniques
Problem Solving TechniquesProblem Solving Techniques
Problem Solving Techniques
 
Cybercrime And Computer Misuse Cases
Cybercrime And Computer Misuse CasesCybercrime And Computer Misuse Cases
Cybercrime And Computer Misuse Cases
 
National Geographic
National GeographicNational Geographic
National Geographic
 
E Recruitment
E RecruitmentE Recruitment
E Recruitment
 
Reflections
ReflectionsReflections
Reflections
 

Kürzlich hochgeladen

Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKJago de Vreede
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 

Kürzlich hochgeladen (20)

Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 

Use Case Diagram

  • 1. UML Lecture Series UML SIG Requirements Modeling (Use Case Diagram + Use Case Description) UML Lecture Series Requirements Modeling (Use Case Diagram + Use Case Description)
  • 2.
  • 3.
  • 4. Thoughts to Ponder … To my knowledge, no other software engineering language construct as significant as use cases has been adopted so quickly and so widely among practitioners. I believe this is because use cases play a role in so many different aspects of software engineering. Ivar Jacobson Founding Father of UML and Creator of Use Case Diagram
  • 5. Functional vs. Non-Functional Requirements Functional Non-Functional Functional requirement are user ‘visible’ features and are typically initiated by stakeholders of the system – generate report, login, etc. Non-functional requirements are ‘non-visible’ features and but required for a effective running of an application – security, backup, etc.
  • 6.
  • 7. Use Case Diagram Definition: A diagram that shows a set of use cases and actors and their relationships. Use cases represent system functionality, the requirements of the system from the user’s perspective .
  • 8. Notations use case A description of a set of sequences of actions, including variants, that system performs that yields an observable value to an actor. actor The people or systems that provide or receive information from the system; they are among the stakeholders of a system. include Specifies that the source use case explicitly incorporates the behaviour of another use case at a location specified by the source extend Specifies that the target use case extends the behaviour of the source. <<include>> <<extend>>
  • 9. Actors Actors Could be human beings, other systems, timers and clocks or hardware devices. Actors that stimulate the system and are the initiators of events are called primary actors (active) Actors that only receive stimuli from the system are called secondary actors (passive)
  • 10. Actors Actors Who/what will be interested in the system? Who/what will want to change the data in the system? Who/what will want to interface with the system? Who/what will want information from the system?
  • 11.
  • 12. Example – Include and Extend
  • 13. The use of include and extend is discouraged simply because they add unnecessary complexity to a Use Case diagram. Since the primary purpose of use cases is to show user centred functionality, the precedence of use cases takes little importance. Include and Extend
  • 14. Quiz 1 Which use case is NOT valid?
  • 15. Quiz 2 Identify TWO(2) mistakes
  • 16. Granularity of Use Cases Add reference Remove reference Search for reference User List references Fine Grained or Course Grained?
  • 17. Granularity of Use Cases Manage Reference User Generally, a use case should embody sufficient levels of granularity without which the use case may not be rendered as useful.
  • 18.
  • 24. Discussion Exercise Inventory System In order to generate an invoice a clerk must log in. If a clerk is a first time user, one must have themselves registered. There should be an option for a user to register oneself within the login page. Any user can use the system to view products online. The option of login is also provided when a user views products online. Draw a use case diagram for the scenario below:
  • 26.
  • 27. Use Case Specification Is a use case diagram alone sufficient in capturing user requirements?
  • 29. Use Case Specification Use case specification is synonymous to use case description and use case definition and can used interchangeably. Use case specification defines information that pertains to a particular use case which is important in understanding the purpose behind the use case. Use case specification is written for every use case. A use case specification has one or more flow of events or pathways association with it.
  • 30. Flow of Events / Pathways A flow of events or pathway is a textual description embodying sequence of events with regards to the use case and is part of the use case specification. Flow of events is understood by the customer. A detailed description is necessary so that one can better understand the complexity that might be involved in realising the use cases.
  • 31. Flow of Events / Pathways Flow of events describes how and when the use case starts and ends, when the use case interacts with the actors, and the information exchanged between an actor and the use case. Flow of events is derived from a what perspective, NOT how perspective. Hence, specific information like: interface details and technical specifications should NOT be included in a use case description. Use case description serves as a ‘bridge’ between stakeholders of a system and the development team.
  • 32. Flow of Events / Pathways Use case description serves as a ‘bridge’ between stakeholders of a system and the development team. Use Case Diagram Use Case Specification Programmers look at use case specification to understand complete requirements - SRS Systems analyst produce use case diagram & use case specification in consultation with end users
  • 33. Flow of Events / Pathways Flow of Events Describes how and when use case starts and ends. Does NOT describe user interface details. Is generally a text-based file that is included under its use case in Rational Rose/Visual Paradigm
  • 34. Types Flow of Events / Pathways Types of Flow of Events Basic Flow of Events@ Happy Path - is the most common pathway. It usually depicts a perfect situation, in which nothing goes wrong. Alternate Flow of Events @ Alternate Pathway - is a pathway that is still considered a good pathway; it’s just not the most heavily travelled one Exception Flow of Events @ Exception Pathways @ Unhappy Pathway – things don’t always go as planned. An exception is an error condition that is important enough to the application to capture.
  • 35. Types Flow of Events / Pathways Basic Flow of Events@ Happy Path – You get to the ATM and successfully withdraw money Alternate Flow of Events @ Alternate Pathway - You get to the ATM but could not withdraw money due to insufficient funds in your account. Exception Flow of Events @ Exception Pathways @ Unhappy Pathway – You get to the ATM machine but your valid pin number is not accepted.
  • 36. See Example Word Document on Use Case Specification based on Remulak Productions Use Case Specifications - Example
  • 38. Review Question A use case specification cannot be done for an included use case. True False
  • 39. Review Question Use case specification together with a use case diagram become part of what is know as system requirements specification (SRS) True False
  • 40. Review Question Although non-functional requirements (i.e shadow use cases) are not “technically speaking” a use case, are still considered a use case to acknowledge the importance it has in the overall system. True False
  • 41. Review Question Basic Flow of Events @ Happy Path is a series of events that happens some of the time True False
  • 42. Review Question Alternate Flow of Events @ Alternate Pathway is a series of events that happens all the time True False
  • 43. Review Question Exception Flow of Events @ Exception Pathway is a series of events that is impossible to happen. True False
  • 44. Review Question Both use case diagram and use case specification should not be too detailed. True False
  • 45. Use Case Diagram - In Class Exercise Write use case specification based on the case diagram for Inventory System.
  • 46.
  • 48. Reference Jacobson I. 2003, “ Use Case – Yesterday, Today and Tomorrow ”, The Rational Edge, IBM