Activity Diagram.

Slides:



Advertisements
Similar presentations
1 CIS224 Software Projects: Software Engineering and Research Methods Lecture 6 State Machine and Activity Diagrams (Based on Stevens and Pooley (2006,
Advertisements

UML State chart/machine diagram State machine diagram is a behavior diagram which shows discrete behavior of a part of designed system through finite state.
Information System Design IT60105
7M701 1 Activity Diagram. 7M701 2 Example 7M701 3 Activity Diagram: what is it? Describes activities and flows of data or decisions between activities.
Introduction to BizAgi. Slide 2 User Interface (Summary) The user interface for BizAgi resembles Office It uses a similar ribbon The Palette contains.
UML Activity Diagrams In UML an activity diagram is used to display the sequence of actions They show the workflow from start to finish Detail the many.
SE 555 Software Requirements & Specification 1 Activity Diagrams.
Ch5: Software Specification. 1 Dynamic modeling using UML  Static models:  Dynamic models:
L06-2-S1 Activity Diagrams 2003 SJSU -- CmpE Software Engineering II Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
7M822 UML Activity Diagrams 6 October 2008.
Activity Diagrams. What is Activity Diagrams?  Activity diagrams are a technique to describe procedural logic, business process, and work flow.  An.
1999 – 2006 M.E. Fayad SJSU -- CmpE Software Engineering Management Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
SE-565 Software System Requirements More UML Diagrams.
Software Design Processes and Management
Software Engineering EKT 420. What is Activity Diagram Activity diagrams are graphical representations of workflows of stepwise activities and actions.
Interaction Modeling. Sequence Models  There are two kinds of sequence models: scenarios and sequence diagrams  A scenario is a sequence of events that.
Activity Diagram. C-S 5462 Activity diagram a diagram that represents a sequence of activities similar to flow chart, used in 1960’s and 1970’s an activity.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 8: Modelling Interactions and Behaviour.
CS 325: Software Engineering March 3, 2015 Activity Modeling for Transformational Systems Trtansformational Systems UML Activity Diagrams.
Chapter 8: Modelling Interactions and Behaviour UML Activity Diagram
UML A CTIVITY D IAGRAMS 1 Dr. Hoang Huu Hanh, OST – Hue University hanh-at-hueuni.edu.vn.
Interaction Models (2): Sequence Diagrams Extracted from textbook: Object Oriented Modeling and Design with UML M. Blaha, J. Rumbaugh 1.
February 20, 2012  Present Fayad KSU – SWE Process and Modeling Software Process and Modeling Dr. M.E. Fayad, Professor Software Engineering Department,
Activity diagrams. Introduction ● Activity diagrams are a behavioural model that represent the dynamics of the system. ● An activity diagram is essentially.
Information System Design IT60105
© 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1 UML Activity Diagrams.
Chapter 11 Activity Diagrams. 2 “Activity diagrams are a technique to describe procedural logic, business processes, and work flows” - M. Fowler An activity.
Object Oriented Analysis & Design & UML (Unified Modeling Language)1 Part VI: Design Continuous Activity Diagams State Diagrams.
CS212: Object Oriented Analysis and Design Lecture 34: UML Activity and Collaboration diagram.
© 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1 UML State Diagrams.
CS3773 Software Engineering Lecture 06 UML State Machines.
Interaction Diagram An interaction diagram is a graphical representation of interactions between objects. Sequence diagram: shows the sequence in which.
University of Southern California Center for Systems and Software Engineering 9/20/2010© USC-CSSE Activity Diagrams for Business Workflows and.
Smith’s Aerospace © P. Bailey & K. Vander Linden, 2005 Procedural Activity Patrick Bailey Keith Vander Linden Calvin College.
 Activity diagram is basically a flow chart to represent the flow from one activity to another activity.
Interaction Models (2): Activity Diagrams Extracted from textbook: Object Oriented Modeling and Design with UML M. Blaha, J. Rumbaugh.
Activity Diagrams. Notation Activity1()cActivity2() 1. Activities 2. Transition.
State transition modeling
Business Process and Functional Modeling
UML Chapter 17.
Chapter 3 DOCUMENTING ACCOUNTING SYSTEMS
ACTIVITY DIAGRAMS 《UML面向对象建模基础》.
Activity Diagrams.
UML Diagramming and Notation
Chapter 4: Business Process and Functional Modeling, continued
State Machine Model.
State Diagram – Advanced Concepts
State Machine Diagram.
Interaction View.
Use Case Model.
Activity Diagram.
Activity and State Transition Diagram
Visit for more Learning Resources
State Machine Diagrams
Chapter 8: Modelling Interactions and Behaviour UML Activity Diagram
Activity Diagrams.
Business System Development
UML Activity Diagrams.
UML Activity Diagrams & State Charts
CS/CPE 426 Senior Projects
Activity Diagrams.
BPMN - Business Process Modeling Notations
CS/CPE 426 Senior Projects
Activity diagram It supports visual representation of sequences of actions that target a certain result. May be built for one or many use cases or for.
Activity Diagrams for Business Workflows and Scenarios
CS 791Z State Machines & Advanced State Machines
Appendix 3 Object-Oriented Analysis and Design
Behavioral Diagrams P. P. Mahale
Object-Oriented Analysis & Design
Interaction Models (2): Activity Diagrams
Presentation transcript:

Activity Diagram

Activity diagram Represents a sequence of activities An activity is a group of atomic actions An action is indivisible (atomic) task Example: change the value of a variable/field An activity may consist of sub-activities or actions or both In general, activities may be decomposable but actions are not. Activities can be interrupted by events, but actions are not. C-S 446/546

Activity diagram – basic syntax final action initial subactivity C branch merge ~C action C – Boolean expression C-S 446/546

Activity diagram - semantics An activity diagram consists of a collection of action states, sub-activities and transitions Every activity diagram must have only one initial state and one or more final states The initial state represents the beginning of the activity and a final state represents the termination of an activity Actions are represented by action states (rounded rectangles) A sub-activity is also represented by a rounded rectangle but with an icon inside the rectangle C-S 446/546

Activity diagram – semantics (continued) When expanded, each sub-activity is diagrammatically substituted with the incoming and outgoing transitions matched Sequence of actions is represented by transitions between actions Transitions are simple straight arrows with no labels or parameters Transitions may have guards/conditions, send-clause and actions (very similar to those in state transition diagrams) Transitions are augmented with conditions at branching C-S 446/546

Activity diagram – semantics (continued) A branch is represented by a diamond Has one incoming transition to enter the branch Two or more outgoing transitions augmented with mutually exclusive conditions A merger is also represented by a diamond Two or more incoming transitions and one outgoing transition The outgoing transition will be fired only when all the incoming transitions are fired C-S 446/546

When to use an activity diagram An activity diagram can be used to describe a use case describe a method in a sequence or communication diagram describe an action associated with a transition in a state diagram, or the entry action or the exit action of a state diagram Caution: the word “action” in state diagram represents a higher level task while the same word in an activity diagram represents an atomic non-divisible computation C-S 446/546

Use case “withdraw” with no overdraft protection false amount > 0 report error true false balance >= amount report error true balance = balance - amount Use case “withdraw” with no overdraft protection C-S 446/546

Use case “withdraw” with overdraft protection false amount > 0 report error true false balance >= amount amount – balance < N false report error true true balance = balance - amount Use case “withdraw” with overdraft protection ‘N’ represents overdraft limit C-S 446/546

Activity diagram – more syntax Obj.action (params) : Class action action Fork node Object action action Join node C-S 446/546

Activity diagram – Example Application. install() Initialize Bar : ProgressBar Initiate Update status of Bar Display Bar C-S 446/546

Activity partition An activity partition represents a group of actions Actions grouped based on who performs the actions Actions grouped based on the functionality achieved by the actions Actions grouped based on timing events … Previous versions of UML call this as “swim lane”. C-S 446/546

Activity partition – Example Installer DisplayWindow Initialize Bar Update status of Bar :Progress Bar Display Bar C-S 446/546

C-S 446/546

Exercise Show the activity diagram for the inventory management system example Show the activities involved while checking the inventory of a particular item and ordering the item, assuming that the count for that item is below the minimum level. C-S 446/546

Subactivity An action state in an activity diagram can be represented by a subactivity as shown below Subactivity A subactivity represents a simplification of another activity diagram It reduces the space for an activity diagram C-S 446/546

Subactivity - semantics A subactivity is a representation of another activity diagram The incoming arrow to a subactivity matches with the initial state of the activity diagram represented by the subactivity The outgoing arrow from a subactivity matches with the final state of the activity diagram represented by the subactivity C-S 446/546

Customer Sales Stockroom Request service Take Order Pay Fill Order Deliver order Collect order C-S 446/546

Objects as parameters Objects passed as parameters between action states can be represented in the activity diagram (and in swimlane diagram) using the same syntax for objects The transition between an object parameters and an action state is represented with a dashed line, instead of a solid line C-S 446/546

Customer Sales Stockroom Request service : Order [placed] :Order [entered] Take Order Pay Fill Order : Order [filled] :Order [delivered] Deliver order Collect order C-S 446/546

ATM Example -- Withdraw C-S 446/546