SE 555 Software Requirements & Specification 1 Activity Diagrams.

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.
Information System Design IT60105
Interaction Diagrams Activity Diagram State Machine Diagram
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.
Chapter 8: Modelling Interactions and Behaviour
State Diagram. What is State Diagram?  State diagram is used to show the state space of a given class, the events that cause a transition from one state.
© 2005 Prentice Hall4-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.
1 © Wolfgang Pelz UML2 UML Part 3. 2 © Wolfgang Pelz UML2 Chapter Ten State Machine Diagrams.
UML Activity Diagram. Activity Diagram  The main reason to use activity diagrams is to model the workflow behind the system being designed.  Activity.
System Analysis and Design
SE-565 Software System Requirements More UML Diagrams.
Software Design Processes and Management
Unified Modeling Language
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.
Class, Sequence and UML Model.  Has actors and use cases.
BPMN By Hosein Bitaraf Software Engineering. Business Process Model and Notation (BPMN) is a graphical representation for specifying business processes.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 8: Modelling Interactions and Behaviour.
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
Interaction Models (2): Sequence Diagrams Extracted from textbook: Object Oriented Modeling and Design with UML M. Blaha, J. Rumbaugh 1.
1 Devon M. Simmonds University of North Carolina, Wilmington CSC450 Software Engineering WorkFlow Modeling with Activity Diagrams.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 15 System Modeling with the UML.
UML -Part 3. Dynamic Diagram Types Interaction Diagrams - Set of objects or roles and the messages that can be passed among them. – Sequence 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, 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.
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.
Information System Design IT60105
Introduction to UML CS A470. What is UML? Unified Modeling Language –OMG Standard, Object Management Group –Based on work from Booch, Rumbaugh, Jacobson.
UNIFIED MODELING LANGUAGE(UML) BY Touseef Tahir Lecturer CS COMSATS Institute of Information Technology, Lahore.
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.
Activity Diagrams Textbook References Chapter 6 – Pg. 165 – 171.
7-1 © Prentice Hall, 2007 Topic 7: Analysis Classes Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey.
Chapter 3: Introducing the UML
University of Southern California Center for Systems and Software Engineering 9/20/2010© USC-CSSE Activity Diagrams for Business Workflows and.
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.
Activity Diagramming by Andrzej Rosolski Stanisław Gliniewicz.
Interaction Models (2): Activity Diagrams Extracted from textbook: Object Oriented Modeling and Design with UML M. Blaha, J. Rumbaugh.
CompSci 280 S Introduction to Software Development
Business Process and Functional Modeling
Appendix 3 Object-Oriented Analysis and Design
Analysis Classes Unit 5.
Information Delivery Manuals: Process Mapping
WHAT IS A Process Map? Illustration of the sequence of activities, inputs and outputs to the activities, and relationship across multiple functions, or.
UML Modeling Sequence diagram
Unified Modeling Language
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.
Business System Development
Software Engineering Chapter 5 (Part 3) System Modeling Dr.Doaa Sami.
Week 12: Activity & Sequence Diagrams
Interaction diagrams Interaction diagrams are models that describe how groups of objects collaborate in some behavior. Typically, an interaction diagram.
Appendix 3 Object-Oriented Analysis and Design
Interaction Models (2): Activity Diagrams
Presentation transcript:

SE 555 Software Requirements & Specification 1 Activity Diagrams

SE 555 Software Requirements & Specification 2 Activity Diagram Activity diagrams describe the workflow behavior of a system. –Activity diagrams are used in process modeling and analysis of during requirements engineering. –A typical business process which synchronizes several external incoming events can be represented by activity diagrams. They are most useful for understanding work flow analysis of synchronous behaviors across a process.

SE 555 Software Requirements & Specification 3 Activity Diagram Activity diagrams are used for –documenting existing process –analyzing new Process Concepts –finding reengineering opportunities. The diagrams describe the state of activities by showing the sequence of activities performed. –they can show activities that are conditional or parallel.

SE 555 Software Requirements & Specification 4 Activity Diagram Concepts An activity is trigged by one or more events and activity may result in one or more events that may trigger other activity or processes. Events start from start symbol and end with finish marker having activities in between connected by events. The activity diagram represents the decisions, iterations and parallel/random behavior of the processing. –They capture actions performed. –They stress on work performed in operations (methods).

SE 555 Software Requirements & Specification 5 When to Use Activity Diagrams The main reason to use activity diagrams is to model the workflow behind the system being designed. Activity Diagrams are also useful for: –analyzing a use case by describing what actions need to take place and when they should occur –describing a complicated sequential algorithm –modeling applications with parallel processes Activity Diagrams should not take the place of interaction diagrams and state diagrams. interaction diagramsstate diagrams Activity diagrams do not give detail about how objects behave or how objects collaborate.

SE 555 Software Requirements & Specification 6 Components An activity is an ongoing, though interruptible, execution of a step in a workflow (such as an operation or transaction) –Represented with a rounded rectangle. –Text in the activity box should represent an activity (verb phrase in present tense).

SE 555 Software Requirements & Specification 7 Components An event is triggered by an activity. It specifies a significant occurrence that has a location in time and space. –An instance of an event (trigger) results in the flow from one activity to another. –These are represented by directed straight lines emerging from triggering activity and ending at activity to be triggered. Label text for events should represent event but not the data involved. A decision may be shown by labeling multiple output transitions of an activity with different guard conditions. –For convenience a stereotype is provided for a decision: the traditional diamond shape, with one or more incoming arrows and with two or more outgoing arrows, each labeled by a distinct guard condition with no event trigger.

SE 555 Software Requirements & Specification 8 How to Draw an Activity Diagram Diagrams are read from top to bottom and have branches and forks to describe conditions and parallel activities. –A fork is used when multiple activities are occurring at the same time. –A branch describes what activities will take place based on a set of conditions. –All branches at some point are followed by a merge to indicate the end of the conditional behavior started by that branch. –After the merge all of the parallel activities must be combined by a join before transitioning into the final activity state.

SE 555 Software Requirements & Specification 9 Activity Diagram Example Fork Branch Start State Merge Join Activity End State

SE 555 Software Requirements & Specification 10 Use Case Withdraw money from a bank account through an ATM

SE 555 Software Requirements & Specification 11

SE 555 Software Requirements & Specification 12 Disadvantages A disadvantage of activity diagrams is that they do not explicitly present which objects execute which activities, and the way that the messaging works between them. –Labeling of each activity with the responsible object can be done. –It is useful to draw an activity diagram early in the modeling of a process, to help understand the overall process. Then interaction diagrams can be used to help you allocate activities to classes.

SE 555 Software Requirements & Specification 13 References Activity Diagrams vity.htmhttp://pigseye.kennesaw.edu/~dbraun/csis4650/A&D/UML_tutorial/acti vity.htm tivity.htmlhttp://isds.bus.lsu.edu/cvoc/learn/bpr/cprojects/spring1998/modeling/ac tivity.html Fast Track UML 2 (from Books 24x7)