7M701 1 Activity Diagram. 7M701 2 Example 7M701 3 Activity Diagram: what is it? Describes activities and flows of data or decisions between activities.

Slides:



Advertisements
Similar presentations
Chapter 3 Requirements Analysis, Negotiation and Modeling Part 3 Dr. Eman Al-Maghary Requirements Engineering.
Advertisements

UML Use Case Diagram / Use Case Text / Activity Diagram
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.
Information System Design IT60105
Extending the Requirements Model - techniques for detailing use cases
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.
Class Diagram & Object Diagram
Use Case Modelling.
L06-2-S1 Activity Diagrams 2003 SJSU -- CmpE Software Engineering II Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
ADMS-BIS Bouwkundige Informatiesystemen ADMS 2006 UML part 1 Jan Dijkstra - 9 oktober 2006 ADMS-BIS.
7M822 UML Activity Diagrams 6 October 2008.
1 © Wolfgang Pelz UML2 UML Part 3. 2 © Wolfgang Pelz UML2 Chapter Ten State Machine Diagrams.
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.
Requirements Analysis Activity Diagrams b511.ppt © Copyright De Montfort University 2000 All Rights Reserved INFO2005 Requirements Analysis.
Activity Diagrams Derived from several techniques: Event diagrams of Jim Odell SDL state modeling techniques Workflow modeling Petri nets Especially useful.
7M822 UML Interaction Diagrams 25 November 2010.
SE-565 Software System Requirements More UML Diagrams.
7M822 UML Sequence Diagrams 5 October 2009.
1COM6030 Systems Analysis and Design © University of Sheffield 2005 COM 6030 Software Analysis and Design Lecture 6 - Use cases and activity diagrams Dr.
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.
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.
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.
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.
9-1 © Prentice Hall, 2004 Chapter 9: Analysis Classes Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey.
9-1 © Prentice Hall, 2007 Chapter 9: Analysis Classes Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey.
© 2008 Prentice Hall, Ovidiu Noran Lecture 7b 1 Modelling OO Logic Requirements: Sequence Diagrams and Activity Diagrams (Textbook Chapter 8, Appendix)
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.
Unified Modeling Language User Guide Section 4 - Basic Behavioral Modeling Chapter 19 – 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.
7-1 © Prentice Hall, 2007 Topic 7: Analysis Classes Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey.
Smith’s Aerospace © P. Bailey & K. Vander Linden, 2005 Procedural Activity Patrick Bailey Keith Vander Linden Calvin College.
Analysis Classes. What Is an Analysis Class?  A class that represents initial data and behavior requirements, and whose software and hardware-oriented.
 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.
Activity Diagrams. Notation Activity1()cActivity2() 1. Activities 2. Transition.
UML Activity and Sequence Diagrams David Millard
Activity Diagram.
UML Chapter 17.
Analysis Classes Unit 5.
Activity Diagrams.
Information Delivery Manuals: Process Mapping
Chapter 4: Business Process and Functional Modeling, continued
Activity Diagram.
Activity and State Transition Diagram
Visit for more Learning Resources
Chapter 8: Modelling Interactions and Behaviour UML Activity Diagram
Activity Diagrams Activity diagrams describe the workflow behavior of a system.  The diagrams describe the state of activities by showing the sequence.
UML Activity Diagrams.
Software Engineering Chapter 5 (Part 3) System Modeling Dr.Doaa Sami.
Use Case Modeling - techniques for detailing use cases
Process Modeling: Activity/Swimlane Diagrams
Software System Engineering
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.
Behavioral Diagrams P. P. Mahale
Object-Oriented Analysis & Design
Presentation transcript:

7M701 1 Activity Diagram

7M701 2 Example

7M701 3 Activity Diagram: what is it? Describes activities and flows of data or decisions between activities Provides a very broad view of business processes Can be used to break out the activities that occur within a use case Good for showing parallel threads

7M701 4 Activity Diagram: when to use it? When describing work flow across many use cases When analysing a use case, and before methods are assigned to symbols When dealing with multi-threaded applications

7M701 5 Creating an Activity Diagram This diagram is useful in showing work flow connections and describing behaviour that has a lot of parallel processing. When you use an activity diagram you can choose the order in which to do things. It expresses the essential sequencing rules to follow. It is different from a flow chart in that it shows parallel processes, not just sequential processes.

7M701 6 Activity Diagram Shows a set of activities, the flow from activity to activity. Represents the dynamic view of a system. Models the function of a system.

7M701 7 Activity Diagram Activity diagrams show the flow of control between activities They can model the sequential and concurrent steps in a computational process They can also model the flow of an object as it moves from state to state at different points in the activity

7M701 8 UML Activity symbols

7M701 9 Action State In a conceptual diagram an activity is a task that needs to be done – either by a human or a computer In a specification-perspective diagram or an implementation-diagram, an activity is a method on a class

7M Brief Example

7M Decomposition : ‘Pay Attention’

7M Sequential Branching A sequential branch is represented as a diamond It may have one incoming transition and two or more outgoing transitions Guards are associated with each transition. The guards are evaluated upon entering the branch, and the one that evaluates to true is then taken

7M Example

7M Branch & Merge

7M Forking and Joining Concurrent activities within an activity diagram are modelled with the use of synchronised bars Synchronisation bars are drawn as a thick horizontal or vertical line Joins and Forks should balance The number of flows that leave a fork should equal to the number of flows entering the corresponding join.

7M Fork & Join

7M701 17

7M Forks, Joins & conditional Threads

7M Swim lanes The activities of an activity diagram may be performed by different groups. Each zone or lane represents the responsibilities of a particular group. If swimlanes are used, each activity can belong to one and only one swimlane. To use swimlanes, you must arrange your activity diagrams into vertical zones separated by dashed lines.

7M Swim lanes

7M Activity Diagram

7M Composite Activity

7M Activity Diagram

7M Composite Activity

7M701 25

7M701 26

7M701 27

7M Example

7M Example

7M Example

7M701 31

7M Object Flow Objects may be involved in the flow of control associated with an activity. These associations can be shown in activity diagrams by placing objects in the diagram and linking them to specific activities using a dependency link. The same object may be the output of one action and the input of one or more subsequent activities. To distinguish the various appearances of the same object, the state of the object at each point may be placed in brackets and appended to the name of the object.

7M Object Flow Example

7M Key point Activity diagrams are useful for Business Process Redesign Work Flow Modelling Analysing Use Cases

7M NS Ticket service Define a use case diagram of ‘NS Ticket service’ Describe an use case. Take ticket Destination Single / Retour No Reduction / 40% reduction 2e class / 1e class

7M Use Case diagram ‘NS Ticket service’

7M Use Case Buy OV Ticket Actors Traveller Preconditions Traveller has a valid pass Description 1.Ticket device expects destination code 2.Traveller enters destination code 3.Extension point: NS ticket 4.Ticket device checks code and calculates the charge. Shows destination code & fare. Activates ticket machine for paying 5.Traveller pays (use case: Pay ticket) 6.Ticket device print and supplies ticket 7.Traveller takes ticket Extension Destination code = NS station. 3a. Ticket device expects ticket type 3b. Traveller enters Single/Return, Discount Y/N, Class Exceptions Traveller interrupt the interaction or walk away Traveller enters an incorrect destination code Payment is not finished off successful Result Traveller has ticket. (NS can look forward to the payment)

7M Make a class diagram of ‘NS ticket service’ including the classes ‘Ticket’ and ‘Destination’

7M Make an activity diagram for the actor ‘Traveller’