際際滷

際際滷Share a Scribd company logo
Software Engineering
Lecture 5
Activity Diagram
What is an Activity Diagram?
 Activity diagrams represent the dynamic (behavioral) view of a system
 Activity diagrams are typically used for business (transaction) process modeling and
modeling the logic captured by a single use-case or usage scenario
 Activity diagram is used to represent the flow across use cases or to represent flow
within a particular use case
 UML activity diagrams are the object oriented equivalent of flow chart and data flow
diagrams in function-oriented design approach
 Activity diagram contains activities, transitions between activities, decision points,
synchronization bars, swim lanes and many more
 Useful to specify software or hardware system behavior
 Based on data flow models  a graphical representation (with a Directed Graph) of
how data move around an information system
Basic Components in an Activity Diagram
 Initial node
 The filled circle is the starting point
of the diagram
 Final node
 The filled circle with a boarder is the
ending point. An activity diagram
can have zero or more activity final
state.
 Activity
 The rounded rectangle represents
activities that occur. An activity is
not necessarily a program, it may be
a manual thing also
 Flow/ edge
 The arrows in the diagram. No label
is necessary
Received form
Payment fees
Hostel
allotment
Issue identity
card
Medical check
Issue library
card
Basic Components in an Activity Diagram
 Fork
 A black bar ( horizontal/vertical )
with one flow going into it and
several leaving it. This denotes the
beginning of parallel activities
 Join
 A block bar with several flows
entering it and one leaving it. this
denotes the end of parallel activities
 Merge
 A diamond with several flows
entering and one leaving. The
implication is that all incoming flow
to reach this point until processing
continues
Received form
Payment fees
Hostel
allotment
Issue identity
card
Medical check
Issue library
card
Basic Components in an Activity Diagram
 Difference between Join and Merge
 A join is different from a merge in that the join synchronizes two
inflows and produces a single outflow. The outflow from a join cannot
execute until all inflows have been received
 A merge passes any control flows straight through it. If two or more
inflows are received by a merge symbol, the action pointed to by its
outflow is executed two or more times
Basic Components in an Activity Diagram
 Decision
 A diamond with one flow
entering and several leaving. The
flow leaving includes conditions
as yes/ no state
 Flow final
 The circle with X though it. This
indicates that Process stop at this
point
 Swim lane
 A partition in activity diagram
by means of dashed line, called
swim lane. This swim lane may
be horizontal or vertical
Received form
Paym ent fees
Hostel
allotment
Issue identity
card
Medical check
Issue library
card
Student Enrollment in IIT (SEIIT)
IIT
Enrollm ent
Student
System
Registrar
Course registration
<<include>>
SEIIT System
 Here different activities are:
 Received enrollment form filled by the student
 Registrar checks the form
 Input data to the system
 System authenticate the environment
 Pay fees by the student
 Registrar checks the amount to be remitted and prepare a bill
 System acknowledge fee receipts and print receipt
 Hostel allotment
 Allot hostel
 Receive hostel charge
 Allot room
 Medical check up
 Create hostel record
 Conduct medical bill
 Enter record
 Issue library card
 Issue identity card
Activity Diagram for the Use Case in
SEIIT
Received form
Payment fees
Hostel
allotm ent
Issue identity
card
Medical check
Issue library
card
Detailed Activity Diagram of SEIIT
Received form
Payment fees
Hostel
allotm ent
Issue identity
card
Medical check
Issue library
card
1
2
Detailed Activity Diagram of SEIIT
Fill-in
form
Check
form
[Incorrect]
[Correct]
Display student
screen
Input student
inform ation
Verify the
applications
Search for Student
selection list
[Not Found]
Regret m essage
[Found]
R egret
registration
[No Match]
[Match]
Create record 1
Detailed Activity Diagram of SEIIT
1 Display
enrollm ent form
Calculate
registration fees
Dispaly fees
payable screen
Pay fee
Process
paym ent
Print receipt
2
Activity Diagram of SEIIT with Swim Lane
Fill-in
form
Check
form
[Incorrect]
[Correct]
Display student
screen
Input student
inform ation Search for Student
selection list
Verify the
applications
Regret m essage
Create record
Regret
registration
[No Match]
[Match]
[Not Found]
[Found]
1
Student
Registrar
System
Some more features in
Activity Diagrams
Object and Object Flow
 An object flow is a path along which objects can pass. An
object is shown as a rectangle
 An object flow is shown as a connector with an arrowhead
denoting the direction the object is being passed.
Input and Output Pin
 An object flow must have an object on at least one of its ends.
A shorthand notation for the above diagram would be to use
input and output pins
Data Store
 A data store is shown as an object with the 束datastore損
keyword
Exception Handling
 Exception Handlers can be modeled on activity diagrams as in
the example below
Interruptible Activity Region
 An interruptible activity region surrounds a group of actions that can be
interrupted. In the very simple example below, the Process Order action
will execute until completion, when it will pass control to the Close Order
action, unless a Cancel Request interrupt is received which will pass
control to the Cancel Order action
An Example
 Identify the business logic in the activity diagram shown below
21
SendSignalAction
 Creates a signal instance from its inputs, and
transmits it to the target object (local or remote)
 A signal is an asynchronous stimulus that triggers a
reaction in the receiver in an asynchronous way and
without a reply
 Any reply message is ignored
22
Time triggers and Time events
 A Time trigger is a trigger that specifies when a time
event will be generated
 Time events occur at the instant when a specified
point in time has transpired
 This time may be relative or absolute
 Relative time trigger: is specified with the keyword after
followed by an expression that evaluates to a time value
 Absolute time trigger: is specified as an expression that
evaluates to a time value
Jan, 1, 2000, Noon
after (5 seconds)
Relative time trigger Absolute time trigger
23
AcceptEventAction
 Waits for the occurrence of an event meeting specified
conditions
 Two kinds of AcceptEventAction:
 Accept event action  accepts signal
events generated by a SendSignalAction
 Wait time action  accepts time events
Accept event action
Wait time action
The objects stored in
Personnel are only
retrieved when the
join succeeds (only
once a year)
Importance of Activity Diagram
 An activity diagram can depict a model in several ways
 It can also depicts Basic course of action as well as detailed courses
 Activity diagram can also be drawn that cross several use cases, or that address just
a small portion of use case
 Activity diagrams are normally employed in business process modeling. This is
carried out during the initial stages of requirement analysis and specification
 Activity diagrams can be very useful to understand the complex processing
activities involving many components
 The activity diagram can be used to develop interaction diagrams which help to
allocate activities to classes
Analyze the following case study and draw activity diagram for the
whole scenario
The purchasing department handles purchase requests
from other departments in the company. People in the
company who initiate the original purchase request are the
"customers" of the purchasing department. A case worker
within the purchasing department receives that request and
monitors it until it is ordered and received. Case workers
process the requests for purchasing products under
$1,500, write a purchase order, and then send it to the
approved vendor. Purchase requests over $1,500 must
first be sent out for a bid from the vendor that supplies the
product. When the bids return, the case worker selects
one bid. Then, the case worker writes a purchase order
and sends it to the approved vendor.
Analyze the following case study and draw activity diagram for the whole
scenario
A Library Information System (LIS) for the benefit of
students and employees of the institute is developed. LIS
will enable the members to borrow a book (or return it) with
ease while sitting at his desk/chamber. The system also
enables a member to extend the date of his borrowing if no
other booking for that particular book has been made. For
the library staff, this system aids them to easily handle day-
to-day book transactions. The librarian, who has
administrative privileges and complete control over the
system, can enter a new record into the system when a
new book has been purchased, or remove a record in case
any book is taken off the shelf. Any non-member is free to
use this system to browse/search books online. However,
issuing or returning books is restricted to valid users
(members) of LIS only.
Analyze the following case study and draw activity diagram for the whole scenario
The Northstar Hotels website allows potential guests to make a room
reservation, specifying the dates and type of room. If they have
registered with the website previously their stored details are used to
speed up the process, otherwise they are required to register as a new
customer. Each reservation is given a unique reservation code. Before
the date of their stay they may enter this reservation code into the
website to amend or cancel the reservation. Amendments can include
altering the dates, changing the room type or the number of guests in
each room. When the guests arrive at the hotel the reservation id is
used by the receptionist to quickly find the reservation to check them in
with. At the end of their stay the receptionist checks the guests out, at
this point the hotel system validates their payment through the card
payment system; a printed invoice may be requested by the guest at
this point. The hotel has many room types available, each with a room-
type name, number of guests and additional facility information. Each
room in the hotel has a room number and is of one specific type. The
maintenance of this data is performed using a separate system out of
scope of this exercise. Monthly reports are prepared by the system
which may be viewed on request by the Hotel Manager.

More Related Content

Recently uploaded (20)

SolidWorks 2025 Crack free Download updated
SolidWorks 2025 Crack  free Download updatedSolidWorks 2025 Crack  free Download updated
SolidWorks 2025 Crack free Download updated
sanasabaa73
AVG Antivirus Crack With Free version Download 2025 [Latest]
AVG Antivirus Crack With Free version Download 2025 [Latest]AVG Antivirus Crack With Free version Download 2025 [Latest]
AVG Antivirus Crack With Free version Download 2025 [Latest]
haroonsaeed605
Cybersecurity & Innovation: The Future of Mobile App Development
Cybersecurity & Innovation: The Future of Mobile App DevelopmentCybersecurity & Innovation: The Future of Mobile App Development
Cybersecurity & Innovation: The Future of Mobile App Development
iProgrammer Solutions Private Limited
LDPlayer 9.1.20 Latest Crack Free Download
LDPlayer 9.1.20 Latest Crack Free DownloadLDPlayer 9.1.20 Latest Crack Free Download
LDPlayer 9.1.20 Latest Crack Free Download
5ls1bnl9iv
Carousel - Five Key FinTech Trends for 2025
Carousel - Five Key FinTech Trends for 2025Carousel - Five Key FinTech Trends for 2025
Carousel - Five Key FinTech Trends for 2025
Anadea
Next-Gen Procurement: Leveraging AI for Smarter Sourcing & Cost Optimization
Next-Gen Procurement: Leveraging AI for Smarter Sourcing & Cost OptimizationNext-Gen Procurement: Leveraging AI for Smarter Sourcing & Cost Optimization
Next-Gen Procurement: Leveraging AI for Smarter Sourcing & Cost Optimization
asmith539880
Adobe InDesign Crack Full Version Free Download 2025
Adobe InDesign Crack  Full Version Free Download 2025Adobe InDesign Crack  Full Version Free Download 2025
Adobe InDesign Crack Full Version Free Download 2025
sannnasaba545
Build the future with Agentforce and Mulesoft
Build the future with Agentforce and  MulesoftBuild the future with Agentforce and  Mulesoft
Build the future with Agentforce and Mulesoft
GiulioPicchi
Mastering Software Test Automation: A Comprehensive Guide for Beginners and E...
Mastering Software Test Automation: A Comprehensive Guide for Beginners and E...Mastering Software Test Automation: A Comprehensive Guide for Beginners and E...
Mastering Software Test Automation: A Comprehensive Guide for Beginners and E...
Shubham Joshi
Instagram Feed Snippet, Instagram posts display in odoo website
Instagram Feed Snippet, Instagram posts display in odoo websiteInstagram Feed Snippet, Instagram posts display in odoo website
Instagram Feed Snippet, Instagram posts display in odoo website
AxisTechnolabs
EASEUS Partition Master Crack with License Code [Latest]
EASEUS Partition Master Crack with License Code [Latest]EASEUS Partition Master Crack with License Code [Latest]
EASEUS Partition Master Crack with License Code [Latest]
bhagasufyan
DevOpsDays LA - Platform Engineers are Product Managers.pdf
DevOpsDays LA - Platform Engineers are Product Managers.pdfDevOpsDays LA - Platform Engineers are Product Managers.pdf
DevOpsDays LA - Platform Engineers are Product Managers.pdf
Justin Reock
SketchUp Pro Crack [2025]-Free Download?
SketchUp Pro Crack [2025]-Free Download?SketchUp Pro Crack [2025]-Free Download?
SketchUp Pro Crack [2025]-Free Download?
kiran10101khan
Wondershare Filmora 14.3.2 Crack + License Key Free Download
Wondershare Filmora 14.3.2 Crack + License Key Free DownloadWondershare Filmora 14.3.2 Crack + License Key Free Download
Wondershare Filmora 14.3.2 Crack + License Key Free Download
arshadkhokher01
Account Cash Flow Statement Report Generate in odoo
Account Cash Flow Statement Report Generate in odooAccount Cash Flow Statement Report Generate in odoo
Account Cash Flow Statement Report Generate in odoo
AxisTechnolabs
Why Hire Python Developers? Key Benefits for Your Business
Why Hire Python Developers? Key Benefits for Your BusinessWhy Hire Python Developers? Key Benefits for Your Business
Why Hire Python Developers? Key Benefits for Your Business
Mypcot Infotech
Enscape Latest 2025 Crack Free Download
Enscape Latest 2025  Crack Free DownloadEnscape Latest 2025  Crack Free Download
Enscape Latest 2025 Crack Free Download
rnzu5cxw0y
AnyDesk Pro 3.7.0 Crack License Key Free Download 2025 [Latest]
AnyDesk Pro 3.7.0 Crack License Key Free Download 2025 [Latest]AnyDesk Pro 3.7.0 Crack License Key Free Download 2025 [Latest]
AnyDesk Pro 3.7.0 Crack License Key Free Download 2025 [Latest]
haroonsaeed605
AI-Powered Chatbots for Employee Support
AI-Powered Chatbots for Employee SupportAI-Powered Chatbots for Employee Support
AI-Powered Chatbots for Employee Support
AutomationEdge Technologies
Tenorshare 4uKey Crack Fre e Download
Tenorshare  4uKey  Crack  Fre e DownloadTenorshare  4uKey  Crack  Fre e Download
Tenorshare 4uKey Crack Fre e Download
oyv9tzurtx
SolidWorks 2025 Crack free Download updated
SolidWorks 2025 Crack  free Download updatedSolidWorks 2025 Crack  free Download updated
SolidWorks 2025 Crack free Download updated
sanasabaa73
AVG Antivirus Crack With Free version Download 2025 [Latest]
AVG Antivirus Crack With Free version Download 2025 [Latest]AVG Antivirus Crack With Free version Download 2025 [Latest]
AVG Antivirus Crack With Free version Download 2025 [Latest]
haroonsaeed605
LDPlayer 9.1.20 Latest Crack Free Download
LDPlayer 9.1.20 Latest Crack Free DownloadLDPlayer 9.1.20 Latest Crack Free Download
LDPlayer 9.1.20 Latest Crack Free Download
5ls1bnl9iv
Carousel - Five Key FinTech Trends for 2025
Carousel - Five Key FinTech Trends for 2025Carousel - Five Key FinTech Trends for 2025
Carousel - Five Key FinTech Trends for 2025
Anadea
Next-Gen Procurement: Leveraging AI for Smarter Sourcing & Cost Optimization
Next-Gen Procurement: Leveraging AI for Smarter Sourcing & Cost OptimizationNext-Gen Procurement: Leveraging AI for Smarter Sourcing & Cost Optimization
Next-Gen Procurement: Leveraging AI for Smarter Sourcing & Cost Optimization
asmith539880
Adobe InDesign Crack Full Version Free Download 2025
Adobe InDesign Crack  Full Version Free Download 2025Adobe InDesign Crack  Full Version Free Download 2025
Adobe InDesign Crack Full Version Free Download 2025
sannnasaba545
Build the future with Agentforce and Mulesoft
Build the future with Agentforce and  MulesoftBuild the future with Agentforce and  Mulesoft
Build the future with Agentforce and Mulesoft
GiulioPicchi
Mastering Software Test Automation: A Comprehensive Guide for Beginners and E...
Mastering Software Test Automation: A Comprehensive Guide for Beginners and E...Mastering Software Test Automation: A Comprehensive Guide for Beginners and E...
Mastering Software Test Automation: A Comprehensive Guide for Beginners and E...
Shubham Joshi
Instagram Feed Snippet, Instagram posts display in odoo website
Instagram Feed Snippet, Instagram posts display in odoo websiteInstagram Feed Snippet, Instagram posts display in odoo website
Instagram Feed Snippet, Instagram posts display in odoo website
AxisTechnolabs
EASEUS Partition Master Crack with License Code [Latest]
EASEUS Partition Master Crack with License Code [Latest]EASEUS Partition Master Crack with License Code [Latest]
EASEUS Partition Master Crack with License Code [Latest]
bhagasufyan
DevOpsDays LA - Platform Engineers are Product Managers.pdf
DevOpsDays LA - Platform Engineers are Product Managers.pdfDevOpsDays LA - Platform Engineers are Product Managers.pdf
DevOpsDays LA - Platform Engineers are Product Managers.pdf
Justin Reock
SketchUp Pro Crack [2025]-Free Download?
SketchUp Pro Crack [2025]-Free Download?SketchUp Pro Crack [2025]-Free Download?
SketchUp Pro Crack [2025]-Free Download?
kiran10101khan
Wondershare Filmora 14.3.2 Crack + License Key Free Download
Wondershare Filmora 14.3.2 Crack + License Key Free DownloadWondershare Filmora 14.3.2 Crack + License Key Free Download
Wondershare Filmora 14.3.2 Crack + License Key Free Download
arshadkhokher01
Account Cash Flow Statement Report Generate in odoo
Account Cash Flow Statement Report Generate in odooAccount Cash Flow Statement Report Generate in odoo
Account Cash Flow Statement Report Generate in odoo
AxisTechnolabs
Why Hire Python Developers? Key Benefits for Your Business
Why Hire Python Developers? Key Benefits for Your BusinessWhy Hire Python Developers? Key Benefits for Your Business
Why Hire Python Developers? Key Benefits for Your Business
Mypcot Infotech
Enscape Latest 2025 Crack Free Download
Enscape Latest 2025  Crack Free DownloadEnscape Latest 2025  Crack Free Download
Enscape Latest 2025 Crack Free Download
rnzu5cxw0y
AnyDesk Pro 3.7.0 Crack License Key Free Download 2025 [Latest]
AnyDesk Pro 3.7.0 Crack License Key Free Download 2025 [Latest]AnyDesk Pro 3.7.0 Crack License Key Free Download 2025 [Latest]
AnyDesk Pro 3.7.0 Crack License Key Free Download 2025 [Latest]
haroonsaeed605
Tenorshare 4uKey Crack Fre e Download
Tenorshare  4uKey  Crack  Fre e DownloadTenorshare  4uKey  Crack  Fre e Download
Tenorshare 4uKey Crack Fre e Download
oyv9tzurtx

Featured (20)

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
Alireza Esmikhani
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter

SE- Lecture 5 SE for easy understanding.ppt

  • 2. What is an Activity Diagram? Activity diagrams represent the dynamic (behavioral) view of a system Activity diagrams are typically used for business (transaction) process modeling and modeling the logic captured by a single use-case or usage scenario Activity diagram is used to represent the flow across use cases or to represent flow within a particular use case UML activity diagrams are the object oriented equivalent of flow chart and data flow diagrams in function-oriented design approach Activity diagram contains activities, transitions between activities, decision points, synchronization bars, swim lanes and many more Useful to specify software or hardware system behavior Based on data flow models a graphical representation (with a Directed Graph) of how data move around an information system
  • 3. Basic Components in an Activity Diagram Initial node The filled circle is the starting point of the diagram Final node The filled circle with a boarder is the ending point. An activity diagram can have zero or more activity final state. Activity The rounded rectangle represents activities that occur. An activity is not necessarily a program, it may be a manual thing also Flow/ edge The arrows in the diagram. No label is necessary Received form Payment fees Hostel allotment Issue identity card Medical check Issue library card
  • 4. Basic Components in an Activity Diagram Fork A black bar ( horizontal/vertical ) with one flow going into it and several leaving it. This denotes the beginning of parallel activities Join A block bar with several flows entering it and one leaving it. this denotes the end of parallel activities Merge A diamond with several flows entering and one leaving. The implication is that all incoming flow to reach this point until processing continues Received form Payment fees Hostel allotment Issue identity card Medical check Issue library card
  • 5. Basic Components in an Activity Diagram Difference between Join and Merge A join is different from a merge in that the join synchronizes two inflows and produces a single outflow. The outflow from a join cannot execute until all inflows have been received A merge passes any control flows straight through it. If two or more inflows are received by a merge symbol, the action pointed to by its outflow is executed two or more times
  • 6. Basic Components in an Activity Diagram Decision A diamond with one flow entering and several leaving. The flow leaving includes conditions as yes/ no state Flow final The circle with X though it. This indicates that Process stop at this point Swim lane A partition in activity diagram by means of dashed line, called swim lane. This swim lane may be horizontal or vertical Received form Paym ent fees Hostel allotment Issue identity card Medical check Issue library card
  • 7. Student Enrollment in IIT (SEIIT) IIT Enrollm ent Student System Registrar Course registration <<include>>
  • 8. SEIIT System Here different activities are: Received enrollment form filled by the student Registrar checks the form Input data to the system System authenticate the environment Pay fees by the student Registrar checks the amount to be remitted and prepare a bill System acknowledge fee receipts and print receipt Hostel allotment Allot hostel Receive hostel charge Allot room Medical check up Create hostel record Conduct medical bill Enter record Issue library card Issue identity card
  • 9. Activity Diagram for the Use Case in SEIIT Received form Payment fees Hostel allotm ent Issue identity card Medical check Issue library card
  • 10. Detailed Activity Diagram of SEIIT Received form Payment fees Hostel allotm ent Issue identity card Medical check Issue library card 1 2
  • 11. Detailed Activity Diagram of SEIIT Fill-in form Check form [Incorrect] [Correct] Display student screen Input student inform ation Verify the applications Search for Student selection list [Not Found] Regret m essage [Found] R egret registration [No Match] [Match] Create record 1
  • 12. Detailed Activity Diagram of SEIIT 1 Display enrollm ent form Calculate registration fees Dispaly fees payable screen Pay fee Process paym ent Print receipt 2
  • 13. Activity Diagram of SEIIT with Swim Lane Fill-in form Check form [Incorrect] [Correct] Display student screen Input student inform ation Search for Student selection list Verify the applications Regret m essage Create record Regret registration [No Match] [Match] [Not Found] [Found] 1 Student Registrar System
  • 14. Some more features in Activity Diagrams
  • 15. Object and Object Flow An object flow is a path along which objects can pass. An object is shown as a rectangle An object flow is shown as a connector with an arrowhead denoting the direction the object is being passed.
  • 16. Input and Output Pin An object flow must have an object on at least one of its ends. A shorthand notation for the above diagram would be to use input and output pins
  • 17. Data Store A data store is shown as an object with the 束datastore損 keyword
  • 18. Exception Handling Exception Handlers can be modeled on activity diagrams as in the example below
  • 19. Interruptible Activity Region An interruptible activity region surrounds a group of actions that can be interrupted. In the very simple example below, the Process Order action will execute until completion, when it will pass control to the Close Order action, unless a Cancel Request interrupt is received which will pass control to the Cancel Order action
  • 20. An Example Identify the business logic in the activity diagram shown below
  • 21. 21 SendSignalAction Creates a signal instance from its inputs, and transmits it to the target object (local or remote) A signal is an asynchronous stimulus that triggers a reaction in the receiver in an asynchronous way and without a reply Any reply message is ignored
  • 22. 22 Time triggers and Time events A Time trigger is a trigger that specifies when a time event will be generated Time events occur at the instant when a specified point in time has transpired This time may be relative or absolute Relative time trigger: is specified with the keyword after followed by an expression that evaluates to a time value Absolute time trigger: is specified as an expression that evaluates to a time value Jan, 1, 2000, Noon after (5 seconds) Relative time trigger Absolute time trigger
  • 23. 23 AcceptEventAction Waits for the occurrence of an event meeting specified conditions Two kinds of AcceptEventAction: Accept event action accepts signal events generated by a SendSignalAction Wait time action accepts time events Accept event action Wait time action The objects stored in Personnel are only retrieved when the join succeeds (only once a year)
  • 24. Importance of Activity Diagram An activity diagram can depict a model in several ways It can also depicts Basic course of action as well as detailed courses Activity diagram can also be drawn that cross several use cases, or that address just a small portion of use case Activity diagrams are normally employed in business process modeling. This is carried out during the initial stages of requirement analysis and specification Activity diagrams can be very useful to understand the complex processing activities involving many components The activity diagram can be used to develop interaction diagrams which help to allocate activities to classes
  • 25. Analyze the following case study and draw activity diagram for the whole scenario The purchasing department handles purchase requests from other departments in the company. People in the company who initiate the original purchase request are the "customers" of the purchasing department. A case worker within the purchasing department receives that request and monitors it until it is ordered and received. Case workers process the requests for purchasing products under $1,500, write a purchase order, and then send it to the approved vendor. Purchase requests over $1,500 must first be sent out for a bid from the vendor that supplies the product. When the bids return, the case worker selects one bid. Then, the case worker writes a purchase order and sends it to the approved vendor.
  • 26. Analyze the following case study and draw activity diagram for the whole scenario A Library Information System (LIS) for the benefit of students and employees of the institute is developed. LIS will enable the members to borrow a book (or return it) with ease while sitting at his desk/chamber. The system also enables a member to extend the date of his borrowing if no other booking for that particular book has been made. For the library staff, this system aids them to easily handle day- to-day book transactions. The librarian, who has administrative privileges and complete control over the system, can enter a new record into the system when a new book has been purchased, or remove a record in case any book is taken off the shelf. Any non-member is free to use this system to browse/search books online. However, issuing or returning books is restricted to valid users (members) of LIS only.
  • 27. Analyze the following case study and draw activity diagram for the whole scenario The Northstar Hotels website allows potential guests to make a room reservation, specifying the dates and type of room. If they have registered with the website previously their stored details are used to speed up the process, otherwise they are required to register as a new customer. Each reservation is given a unique reservation code. Before the date of their stay they may enter this reservation code into the website to amend or cancel the reservation. Amendments can include altering the dates, changing the room type or the number of guests in each room. When the guests arrive at the hotel the reservation id is used by the receptionist to quickly find the reservation to check them in with. At the end of their stay the receptionist checks the guests out, at this point the hotel system validates their payment through the card payment system; a printed invoice may be requested by the guest at this point. The hotel has many room types available, each with a room- type name, number of guests and additional facility information. Each room in the hotel has a room number and is of one specific type. The maintenance of this data is performed using a separate system out of scope of this exercise. Monthly reports are prepared by the system which may be viewed on request by the Hotel Manager.