Activity Diagrams Derived from several techniques: Event diagrams of Jim Odell SDL state modeling techniques Workflow modeling Petri nets Especially useful.

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

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.
Software Design Process A Process is a set of related and (sequenced) tasks that transforms a set of input to a set of output. Inputs Outputs Design Process.
© 2006 ITT Educational Services Inc. SE350 System Analysis for Software Engineers: Unit 9 Slide 1 Appendix 3 Object-Oriented Analysis and Design.
7M701 1 Activity Diagram. 7M701 2 Example 7M701 3 Activity Diagram: what is it? Describes activities and flows of data or decisions between activities.
Interaction Diagrams Activity Diagram State Machine Diagram
SE 555 Software Requirements & Specification 1 Activity Diagrams.
Introduction to UML Part 2 Behavioral Modeling. Sequence (event) diagram Describes object interaction Typically captures behavior of a single use case.
Software modeling for embedded systems: static and dynamic behavior.
1 © Wolfgang Pelz UML2 UML Part Two. 2 © Wolfgang Pelz UML2 Chapters Four & Twelve Interaction Diagrams.
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.
1 © Wolfgang Pelz UML2 UML Part 3. 2 © Wolfgang Pelz UML2 Chapter Ten State Machine Diagrams.
UML Distilled Martin Fowler. State Diagrams  State Transition Diagrams define a number of states and the transitions between the states.
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.
UML Activity Diagram. Activity Diagram  The main reason to use activity diagrams is to model the workflow behind the system being designed.  Activity.
Modern Systems Analysis and Design Fifth Edition Jeffrey A
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.
1 Business Models Modeling. 2 Why Model the Business Business modeling is a technique to help answer critical questions, such as: What do the workers.
Software Design Processes and Management
UML Sequence Diagrams Michael L. Collard, Ph.D. Department of Computer Science Kent State University.
Class, Sequence and UML Model.  Has actors and use cases.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 8: Modelling Interactions and Behaviour.
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 21. Review ANALYSIS PHASE (OBJECT ORIENTED DESIGN) Functional Modeling – Use case Diagram Description.
Chapter 14. Activity Modeling for Transformational Systems
Y2 eProjects Session 4 – Advanced Topics. Objectives  Dynamic Models  Design Patterns (Optional)  Software testing (for S4) ACCP i7.1\Sem3_4\eProject\T4.
1 Devon M. Simmonds University of North Carolina, Wilmington CSC450 Software Engineering WorkFlow Modeling with Activity Diagrams.
February 20, 2012  Present Fayad KSU – SWE Process and Modeling Software Process and Modeling Dr. M.E. Fayad, Professor Software Engineering Department,
11 Software Engineering Dr. K. T. Tsang Lecture 6 Interaction Diagrams
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, 2007 Chapter 9: Analysis Classes Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey.
Discovering object interaction. Use case realisation The USE CASE diagram presents an outside view of the system. The functionality of the use case is.
Course Instructor: Kashif Ihsan 1. Chapter # 3 2.
UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School.
Introduction to UML CS A470. What is UML? Unified Modeling Language –OMG Standard, Object Management Group –Based on work from Booch, Rumbaugh, Jacobson.
Chapter 11 Activity Diagrams. 2 “Activity diagrams are a technique to describe procedural logic, business processes, and work flows” - M. Fowler An activity.
OMT Modeling 1. Object Model : presented by the object model and the data dictionary. 2. Dynamic Model: presented by the state diagrams and event flow.
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 26. Review UML behavioral Diagrams – Sequence diagram.
Essentials of Visual Modeling w/ UML Instructor Notes
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall Object-Oriented Systems Analysis and Design Using UML Systems Analysis and Design,
7-1 © Prentice Hall, 2007 Topic 7: Analysis Classes Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey.
UML Activity Diagrams.
BPMN.  BPMN will provide businesses with the capability of understanding their internal business procedures in a graphical notation.
 Activity diagram is basically a flow chart to represent the flow from one activity to another activity.
Activity Diagramming by Andrzej Rosolski Stanisław Gliniewicz.
Communication Diagrams Lecture 8. Introduction  Interaction Diagrams are used to model system dynamics  How do objects change state?  How do objects.
CSCI 383 Object-Oriented Programming & Design Lecture 7 Martin van Bommel.
WELCOME TO OUR PRESENTATION UNIFIED MODELING LANGUAGE (UML)
Software Engineering: Models David Millard
Introduction to UML.
UML Chapter 17.
UML StateChart Diagrams
Analysis Classes Unit 5.
Chapter 4: Business Process and Functional Modeling, continued
UML Diagrams By Daniel Damaris Novarianto S..
Unified Modeling Language
Activity Diagram.
Activity and State Transition Diagram
Visit for more Learning Resources
UML Diagrams Jung Woo.
Activity Diagrams Activity diagrams describe the workflow behavior of a system.  The diagrams describe the state of activities by showing the sequence.
Business System Development
UML Activity Diagrams.
Process Modeling: Activity/Swimlane Diagrams
Activity Diagrams.
BPMN - Business Process Modeling Notations
Appendix 3 Object-Oriented Analysis and Design
Chapter 14. Activity Modeling for Transformational Systems
Presentation transcript:

Activity Diagrams Derived from several techniques: Event diagrams of Jim Odell SDL state modeling techniques Workflow modeling Petri nets Especially useful when: Modeling a workflow Modeling an operation Describing behavior that has a lot of parallel processing

Activity Activity is the state of doing something Real-world process like typing a letter Execution of a software routine like a method on a class. Rounded rectangle is narrower and more oval-shaped than the state icon.

Activity Diagrams vs. State Diagrams Activity diagram describes the sequencing of activities, with support for both conditional and parallel behavior Activity diagram is a variant of a state diagram in which most, if not all, the states are activity states. Much of the terminology used in Activity diagrams follows that of state diagrams.

Activity Diagram

Activity vs. State Diagrams

Activity Diagram

Activity Diagrams Activity diagrams: allow the user to choose the order in which to do things states the essential sequencing rules that must be followed Flowcharts are limited to sequential processes, whereas activity diagrams can handle parallel processes

Forks & Joins A join synchronizes parallel behavior Forks and joins must match – every time you have a fork, you must have a join that combines the threads started by that fork.

Forks & Joins Extensions to previous rule: A thread that comes out of a fork can itself fork, with the new threads coming back together before reaching the matching join

Forks & Joins Extensions to previous rule: If a thread coming out of a fork goes straight to another fork, you can remove the second fork and just have the threads from the second fork coming out of the first fork.

Decomposing an Activity An activity can be broken down into subactivities using notation similar to superstates and substates on a state diagram.

Activity Diagram

Dynamic Concurrency

Swimlanes Our activity diagrams so far have focused on what happens, but they do not tell you who does what. Communication among responsible objects is missing. Swimlanes can be used to arrange activity diagrams into “zones of responsibility.”

Activity Diagram

Assigning Objects to Activities The task of assigning objects to activities should be done. Should it be done immediately when initially diagramming activities, or later when an overall sense of the behavior is understood?

Activity Diagrams Strengths Support and encourage parallel behavior Good tool for workflow modeling Good tool for multithreading Weaknesses Links among actions and objects are not especially clear Interaction diagrams are more helpful in this area

When to use Activity Diagrams Analyzing a Use Case Understanding Workflow Describing a complicated sequential algorithm Dealing with multithreaded applications

When not to use Activity Diagrams Trying to see how objects collaborate Trying to see how an object behaves over its lifetime Representing complex conditional logic

Object Flow

ESU Revisited Preparing for Registration The process of preparing the course curriculum and making it available to the student community can be expressed using an Activity Diagram. We don’t assign responsibilities to each activity at this time.

ESU Revisited

Preparing for Registration We must make sure all courses have been assigned a professor

ESU Revisited

Use Case Class Diagram Activity Diagram Object Diagram Sequence Diagram Collaboration Diagram State Diagram The UML and Design Flow