Download presentation
Presentation is loading. Please wait.
1
Information Systems Engineering
Activity Diagram
2
Activity Diagram Activity diagrams illustrate the flow of functionality in a system It used in requirements gathering to illustrate the flow of events through a use case These diagrams define where the workflow starts, where it ends, what activities occur during the workflow, and in what order the activities occur An activity is a task that is performed during the workflow
3
Elements of Activity Diagram
Notation Representation Element Show where the flow begins. Each activity diagram must have one and only one start state Start State Show where the flow ends. You can have more than one end state on the diagram (Optional) End State Activity A step in the process Select Flight
4
Elements of Activity Diagram cont.
Notation Representation Element An entity that is used or changed by an activity in the flow. You can understand where and how the object's state changes. Object Name Objects [State] Link objects to activities. from an activity to the object it changes, or from the object to the activity that needs to use it (as input). Object Flows Transitions shows how the flow of control moves from one activity to another
5
Shows decision point in the work flow
Elements of Activity Diagram cont. Notation Representation Element A way to show that two or more branches of a flow occur in parallel. It can be either horizontal or vertical Synchronization Shows decision point in the work flow Decision points
6
Enter Credit Information [Unconfirmed]
Ticket Enter Credit Information [Unconfirmed] [Invalid account, credit system not available ] [Approved] Ticket Reserve Seat [Purchased] Generate Confirmation Number
7
Elements of Activity Diagram
Activity: Actions A detailed steps can be added to the activity by using actions. Actions are smaller steps that take place within an activity They may occur at one of four times: Upon entering the activity. An entry action occurs as soon as the activity begins - "entry“ When exiting the activity. An exit action occurs as you are leaving the activity - "exit“ While performing the activity. These actions occur while in the activity and continue until you leave the activity - do“ Upon a specific event. These actions happen if and only if a specific event occurs - "event” followed by the event name
8
Display Available Flights
Elements of Activity Diagram Activity: Actions cont. Display Available Flights entry/ Find all flights for selected cities entry/ Determine flights with available seats do/ Display list of flights with available seats event/ User request cost information/ Display cost information
9
Mastering UML with Rational Rose 2002
Elements of Activity Diagram Transitions: Limitations Event: The event must happen in order for the transition to occur The transition arrow is labeled with the event name, along with any arguments in parenthesis Reserve seat Cancel reservation Refund credit purchase Cancel Source Mastering UML with Rational Rose 2002
10
Transitions: Limitations cont.
Elements of Activity Diagram Transitions: Limitations cont. Guard condition: While an event triggers a transition, a guard condition controls whether or not the transition can occur If a guard condition is present, it must be true in order for the transition to occur The guard condition is listed along the transition arrow, following any event, and is enclosed in square brackets Reserve seat Generate Confirmation Number [New reservation] Source Mastering UML with Rational Rose 2002
11
Synchronization & Decision Point Example
Elements of Activity Diagram Synchronization & Decision Point Example Enter Credit Information [Invalid account, credit system not available ] [Approved] Reserve seat Generate Confirmation Number Generate Display Confirmation Number
12
Example Draw a detailed activity diagram for the rent a video item use case. Clerk scans card Clerk scans desired video(s) Terminal displays details of each video scanned Verify customer(not a customer, unreliable, customer found) Terminal displays price and due date Terminal prints receipt for signature
13
Example
14
Practice Draw a use case diagram for a Bank system The following use cases are defined: Open customer account Deposit funds Transfer funds Withdraw money Order bank statment View account history Change PIN Draw a detailed activity diagram for the Open customer account and Withdraw money use cases.
15
Use case Diagram: Bank system
16
Activity Diagram: Open customer account
17
Activity Diagram: Withdraw money
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.