L06-2-S1 Activity Diagrams 2003 SJSU -- CmpE Software Engineering II Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.

Slides:



Advertisements
Similar presentations
L3-S1 Practical Solutions 2003 SJSU -- CmpE Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
Advertisements

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.
1 Introduction to modeling Process modelling. 2 Where are we? #TitleDate 1Introduction ORM modeling Relational modeling
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.
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.
L3-1-S1 OO Concepts © M.E. Fayad SJSU -- CMPE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room.
L4-1-S1 UML Overview © M.E. Fayad SJSU -- CmpE Software Architectures Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I.
L3-5c-S1 Object Diagrams © M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department,
L16-S1 Object Diagrams 2003 SJSU -- CmpE Software Patterns Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
L28-S1 Interaction Diagrams 2003 SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room.
L19-S1 More on Class Diagrams 2003 SJSU -- CmpE Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I.
L21-S1 Model-Based Arch SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I.
L3-5d-S1 Class Diagrams © M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room.
Essentials of state and activity diagram Lecture 24.
© M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
L26-S1 Interactions 2003 SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I.
© M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
7M822 UML Activity Diagrams 6 October 2008.
© M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
© M.E. Fayad SJSU -- CmpE Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San José.
L5-S1 Class Diagrams 2003 SJSU -- CmpE Software Patterns Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San.
L8-S1 CRC Cards 2003 SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College.
1999 – 2006 M.E. Fayad SJSU -- CmpE Software Engineering Management Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
Software Engineering Design & modelling
© M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
 Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San.
© M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
L3-6b-S1 Sequence Diagrams © M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room.
SE-565 Software System Requirements More UML Diagrams.
Department of Computer Science 1 CSS 496 Business Process Re-engineering for BS(CS)
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.
BPMN By Hosein Bitaraf Software Engineering. Business Process Model and Notation (BPMN) is a graphical representation for specifying business processes.
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.
L6-S1 UML Overview 2003 SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College.
L8-2-S1 Misc Topics © M.E. Fayad SJSU -- CmpE Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of.
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.
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.
 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.
UML Chapter 17.
Activity Diagrams.
Information Delivery Manuals: Process Mapping
Advanced Object-Oriented Analysis & Design
Activity Diagram.
Activity and State Transition Diagram
Activity Diagram.
Visit for more Learning Resources
Software Engineering Management
Activity Diagrams Activity diagrams describe the workflow behavior of a system.  The diagrams describe the state of activities by showing the sequence.
Component-Based & Software Reuse
Software System Engineering
Process Modeling: Activity/Swimlane Diagrams
Object-Oriented Analysis & Design
Software System Engineering
Software Engineering Management
Activity Diagrams.
BPMN - Business Process Modeling Notations
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.
Software System Engineering
Software System Engineering
Object-Oriented Analysis & Design
Interaction Models (2): Activity Diagrams
Presentation transcript:

L06-2-S1 Activity Diagrams 2003 SJSU -- CmpE Software Engineering II Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San José State University One Washington Square San José, CA

L06-2-S2 Activity Diagrams 2003 SJSU – CmpE --- M.E. Fayad 2 Lesson 6-2: Activity Diagrams

L06-2-S3 Activity Diagrams 2003 SJSU – CmpE --- M.E. Fayad Lesson Objectives 3 Discuss and understand activity diagrams Understand the elements of activity diagrams Activity Transition Synch. Bar Decision Diamond Start & Stop Markers

L06-2-S4 Activity Diagrams 2003 SJSU – CmpE --- M.E. Fayad Describes how activities are coordinated. Is particularly useful when you know that an operation has to achieve a number of different things, and you want to model what the essential dependencies between them are, before you decide in what order to do them. Records the dependencies between activities, such as which things can happen in parallel and what must be finished before something else can start. Represents the workflow of the process. 4 Activity Diagram

L06-2-S5 Activity Diagrams 2003 SJSU – CmpE --- M.E. Fayad 5 Notation Activity1()cActivity2() 1. Activities 2. Transition

L06-2-S6 Activity Diagrams 2003 SJSU – CmpE --- M.E. Fayad 6 Notation - 2 Activity1()c [x>0] [x=0] [x<0] [x>0] [x=0] [x<0] 3. Decision Diamond

L06-2-S7 Activity Diagrams 2003 SJSU – CmpE --- M.E. Fayad 7 Notation Synch. Bar (Join) 4.2 Splitting Bar (Fork) {AND} {OR} {XOR}

L06-2-S8 Activity Diagrams 2003 SJSU – CmpE --- M.E. Fayad 8 Notation Start & Stop Markers Start Marker Stop Marker

L06-2-S9 Activity Diagrams 2003 SJSU – CmpE --- M.E. Fayad 9 Notation - 4 Application/Department/Group/Role Boundaries DevelopersTestersMarkers Swimlane

L06-2-S10 Activity Diagrams 2003 SJSU – CmpE --- M.E. Fayad 10 Example: Business Level Activity Diagram of the Library memberLibrarian [borrower] [returner] Find book on shelf Wait in queue Prepare for next member Record borrowing Record return Put book back of shelf [returning] [borrowing]

L06-2-S11 Activity Diagrams 2003 SJSU – CmpE --- M.E. Fayad To model the dynamic aspects of a system It is essentially a flowchart –Showing flow of control from activity to activity Purpose –Model business workflows –Model operations 11 Activity Diagrams (1)

L06-2-S12 Activity Diagrams 2003 SJSU – CmpE --- M.E. Fayad Activity diagrams commonly contain –Activity states and action states –Transitions –Objects 12 Activity Diagrams (2)

L06-2-S13 Activity Diagrams 2003 SJSU – CmpE --- M.E. Fayad Action states are atomic and cannot be decomposed –Work of the action state is not interrupted Activity states can be further decomposed –Their activity being represented by other activity diagrams –They may be interrupted 13 Action States and Activity States

L06-2-S14 Activity Diagrams 2003 SJSU – CmpE --- M.E. Fayad When the action or activity of a state completes, flow of control passes immediately to the next action or activity state A flow of control has to start and end someplace –initial state -- a solid ball –stop state -- a solid ball inside a circle 14 Transitions (1)

L06-2-S15 Activity Diagrams 2003 SJSU – CmpE --- M.E. Fayad 15 Transitions (2)

L06-2-S16 Activity Diagrams 2003 SJSU – CmpE --- M.E. Fayad 16 Activity Diagram: Example (1)

L06-2-S17 Activity Diagrams 2003 SJSU – CmpE --- M.E. Fayad A branch specifies alternate paths taken based on some Boolean expression A branch may have one incoming transition and two or more outgoing ones 17 Branching (1)

L06-2-S18 Activity Diagrams 2003 SJSU – CmpE --- M.E. Fayad 18 Branching (2)

L06-2-S19 Activity Diagrams 2003 SJSU – CmpE --- M.E. Fayad 19 Activity Diagram: Example (2)

L06-2-S20 Activity Diagrams 2003 SJSU – CmpE --- M.E. Fayad Use a synchronization bar to specify the forking and joining of parallel flows of control A synchronization bar is rendered as a thick horizontal or vertical line 20 Forking and Joining

L06-2-S21 Activity Diagrams 2003 SJSU – CmpE --- M.E. Fayad A fork may have one incoming transitions and two or more outgoing transitions –each transition represents an independent flow of control –conceptually, the activities of each of outgoing transitions are concurrent either truly concurrent (multiple nodes) or sequential yet interleaved (one node) 21 Fork

L06-2-S22 Activity Diagrams 2003 SJSU – CmpE --- M.E. Fayad A join may have two or more incoming transitions and one outgoing transition –above the join, the activities associated with each of these paths continues in parallel –at the join, the concurrent flows synchronize each waits until all incoming flows have reached the join, at which point one flow of control continues on below the join 22 Join

L06-2-S23 Activity Diagrams 2003 SJSU – CmpE --- M.E. Fayad 23 Fork

L06-2-S24 Activity Diagrams 2003 SJSU – CmpE --- M.E. Fayad 24 Activity Diagram: Example (3)

L06-2-S25 Activity Diagrams 2003 SJSU – CmpE --- M.E. Fayad 25 Activity Diagram: Example (4)

L06-2-S26 Activity Diagrams 2003 SJSU – CmpE --- M.E. Fayad 26 Activity Diagram: Example (5)

L06-2-S27 Activity Diagrams 2003 SJSU – CmpE --- M.E. Fayad 27 Activity Diagram: Example (6)

L06-2-S28 Activity Diagrams 2003 SJSU – CmpE --- M.E. Fayad 28 Activity Diagram: Example (7)

L06-2-S29 Activity Diagrams 2003 SJSU – CmpE --- M.E. Fayad A swimlane specifies a locus of activities To partition the activity states on an activity diagram into groups –each group representing the business organization responsible for those activities –each group is called a swimlane Each swimlane is divided from its neighbor by a vertical solid line 29 Swimlanes (1)

L06-2-S30 Activity Diagrams 2003 SJSU – CmpE --- M.E. Fayad Each swimlane has a name unique within its diagram Each swimlane may represent some real-world entity Each swimlane may be implemented by one or more classes Every activity belongs to exactly one swimlane, but transitions may cross lanes 30 Swimlanes (2)

L06-2-S31 Activity Diagrams 2003 SJSU – CmpE --- M.E. Fayad 31 Activity Diagram: Example (8)

L06-2-S32 Activity Diagrams 2003 SJSU – CmpE --- M.E. Fayad 32 Activity Diagram: Example (9)

L06-2-S33 Activity Diagrams 2003 SJSU – CmpE --- M.E. Fayad 33 Discussion Questions What are the element of activity diagrams? T/F –Activity diagram is a behavior model. –Activity diagram is a control model. Define: –Activity diagram