Chapter 11 Activity Diagrams. 2 “Activity diagrams are a technique to describe procedural logic, business processes, and work flows” - M. Fowler An activity.

Slides:



Advertisements
Similar presentations
© 2005 by Prentice Hall Appendix 3 Object-Oriented Analysis and Design Modern Systems Analysis and Design Fourth Edition Jeffrey A. Hoffer Joey F. George.
Advertisements

1 CIS224 Software Projects: Software Engineering and Research Methods Lecture 6 State Machine and Activity Diagrams (Based on Stevens and Pooley (2006,
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.
Activity Diagrams in UML. Definition Activity diagrams represent the dynamics of the system. They are flow charts that are used to show the workflow of.
© 2006 ITT Educational Services Inc. SE350 System Analysis for Software Engineers: Unit 9 Slide 1 Appendix 3 Object-Oriented Analysis and Design.
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.
Activity Diagrams [Arlow and Neustadt, 2005] CS 425 / 625 Seminar on Software Engineering University of Nevada, Reno Department of Computer Science & Engineering.
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.
Ch5: Software Specification. 1 Dynamic modeling using UML  Static models:  Dynamic models:
1 CS 691z/791z Topics in Software Engineering Chapter 13: Activity Diagrams & Chapter 19: Basic Statecharts [Arlow and Neustadt, 2002] March 8, 2007.
L06-2-S1 Activity Diagrams 2003 SJSU -- CmpE Software Engineering II Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
1 CS 426 Senior Projects Chapter 14: Activity Diagrams [Arlow and Neustadt, 2005] February 17, 2009.
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.
COMP1007 Intro to Requirements Analysis © Copyright De Montfort University 2002 All Rights Reserved COMP1007 Introduction to Requirements Analysis Lecture.
SE-565 Software System Requirements More UML Diagrams.
Department of Computer Science 1 CSS 496 Business Process Re-engineering for BS(CS)
Software Design Processes and Management
Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”
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.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 8: Modelling Interactions and Behaviour.
UML A CTIVITY D IAGRAMS 1 Dr. Hoang Huu Hanh, OST – Hue University hanh-at-hueuni.edu.vn.
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 21. Review ANALYSIS PHASE (OBJECT ORIENTED DESIGN) Functional Modeling – Use case Diagram Description.
Interaction Models (2): Sequence Diagrams Extracted from textbook: Object Oriented Modeling and Design with UML M. Blaha, J. Rumbaugh 1.
Business Informatics Group Institute of Software Technology and Interactive Systems Vienna University of Technology Favoritenstraße 9-11/188-3, 1040 Vienna,
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.
UNIFIED MODELING LANGUAGE(UML) BY Touseef Tahir Lecturer CS COMSATS Institute of Information Technology, Lahore.
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.
UML: The Unified Modeling Language Excertos do livro: The Unified Modelling Language User Guide by Grady Booch, James Rumbaugh and Ivar Jacobson.
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 26. Review UML behavioral Diagrams – Sequence diagram.
Chapter 14: Activity Diagrams November 2015 [Arlow and Neustadt, 2005] CS 425/625 Senior Projects University of Nevada, Reno Department of Computer Science.
UML Activity Diagrams.
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.
UML ACTIVITY DIAGRAM 1. Recap Formal Use Case diagram UML notation for use cases Examples 2.
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.
Cliquez pour modifier le style du titre Cliquez pour modifier les styles du texte du masque Deuxième niveau Troisième niveau Quatrième niveau Cinquième.
© 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1 UML Activity Diagrams.
Activity Diagram.
UML Chapter 17.
Analysis Classes Unit 5.
ACTIVITY DIAGRAMS 《UML面向对象建模基础》.
Activity Diagrams.
Activity Diagram.
Activity and State Transition Diagram
Visit for more Learning Resources
Activity Diagrams Activity diagrams describe the workflow behavior of a system.  The diagrams describe the state of activities by showing the sequence.
Activity Diagrams.
Business System Development
UML Activity Diagrams.
Software Engineering Chapter 5 (Part 3) System Modeling Dr.Doaa Sami.
UML Activity Diagrams & State Charts
Process Modeling: Activity/Swimlane Diagrams
Software System Engineering
Chapter 14: Activity Diagrams
Activity Diagrams.
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.
Chapter 14: Activity Diagrams
Chapter 14: Activity Diagrams
Appendix 3 Object-Oriented Analysis and Design
Object-Oriented Analysis & Design
Chapter 14. Activity Modeling for Transformational Systems
Presentation transcript:

Chapter 11 Activity Diagrams

2 “Activity diagrams are a technique to describe procedural logic, business processes, and work flows” - M. Fowler An activity diagram... –models the dynamic aspects of a system. –serves the same function as a flowchart. –Is composed of a sequence of actions, possibly concurrent Introduction

3 An activity diagram… –is commonly used to show the actions/steps involved in carrying out a particular use-case. –Shows the flow from action to action. –Commonly contains action states, flows (a.k.a edges and transitions), forks, merges, joins, decisions and objects. Decisions… –are used to show alternate flows of control. –is represented as a diamond. Outgoing transitions are labeled with guard conditions. Terms and Concepts

4 Forking and Joining –A fork is when a single flow of control splits into two or more parallel (concurrent) flows of control. –A join is when two or more flows of control merge into a single flow of control. –A flow of control is also known as a thread. –A synchronization bar is used to model forking and joining, and is modeled as a thick horizontal or vertical bar. Terms and Concepts

5 A Simple Activity Diagram Figure 11.1

6 Actions can be decomposed into subactivities –Used as a way to manage complexity –Indicated by the rake symbol Decomposing an Action

7 The Activity Diagram of Figure 11.1 modified to invoke the activity in figure 11.2

8 Partitions... –Are used to group actions according to the organization or class responsible for those actions. –Are divided by solid vertical lines. –Can be used in the context of concurrency. An activity can only belong to one partition, but transitions between actions may cross partitions. Partitions (a.k.a. Swimlanes)

9 Activity Diagram with Partitions

10 Receiving Signals A signal is an event received from an outside process. The receipt of the signal triggers the start of an activity

11 Sending Signals The activity sends a signal (send itinerary) and then concurrently waits for two separate external signals. The first flow to reach the final state will terminate the other flow.

12 Tokens “ Control flow is modeled in terms of tokens. The start node will create a token which then goes to next action. After the action executes, the token will go to the next action. When it encounters a fork, the fork will create a token for each of its outbound flows. The opposite happens for joins. It will produce an outbound token once all inbound tokens arrived.” --

13 Four Ways of Showing an Edge (an edge is another name for transition ) The last two examples are passing an Order object from Receive Invoice to Make Payment

14 Pins and Transformations Actions can have parameters Parameters can be modeled as pins Pins correspond to the parameter boxed on a decomposed diagram Transformations can be used to ensure arguments match parameters

15 Expansion Region An expansion region marks an activity diagram area where actions occur once for each item in a collection Once all of the reviewed articles have been placed in the list box pin, a single token is passed to Publish Newsletter > or > stereotypes are commonly used

16 Expansion Region Prepare Article is a shorthand notation for the expansion region in figure 11.9 > expansion is assumed by default

17 Flow Finals Within an expansion region a final flow indicates the end of a particular flow with out termination the remaining flows. The number of items in the output collection may be less than the number of items in the input collection

18 Join Specification A join specification is a Boolean expression attached to a join Each time a token arrives at the join, the join specification is evaluated

19 Object Flow –Objects may be attached (using dependencies) to specific activities in an activity diagram. –The activity to which an object is connected has a direct effect on the object’s state or lifetime. –An object’s state may be shown in brackets inside the object rectangle. Objects and Activity Diagrams

20 Activity Diagram with Object Flow Using UML 1 Notation