Activity Diagrams.

Slides:



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

© by cellconsult.com UC Brew Coffee The Use Case Idea.
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.
Activity Diagrams. Recap Activity Diagrams – When to use? – Where? – Nodes – Edges – More to come …. 2.
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.
SE 555 Software Requirements & Specification 1 Activity Diagrams.
University of Toronto Department of Computer Science © Steve Easterbrook. This presentation is available free for non-commercial use with attribution.
Ch5: Software Specification. 1 Dynamic modeling using UML  Static models:  Dynamic models:
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.
March R McFadyen1 Activity Diagrams start end branch merge fork join guard transition swimlanes activity Used to present procedural steps (algorithm)
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.
Analysis Modeling Dynamic Modeling. Requirements analysis Results in static and dynamic models – Scenario models: use cases (static), swimlane diagrams.
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.
Software Engineering Foundations
Activity Diagram.
Introduction to Sequence Diagrams
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 21. Review ANALYSIS PHASE (OBJECT ORIENTED DESIGN) Functional Modeling – Use case Diagram Description.
1 SAD2 - UML 2 nd Lecture Sequence Diagram and other dynamic views Lecturer: Dr Dimitrios Makris
Other UML Diagramming Techniques CS 124. UML Diagramming Techniques Class Diagrams Use Case Diagrams Interaction Diagrams Sequence diagrams Collaboration.
February 20, 2012  Present Fayad KSU – SWE Process and Modeling Software Process and Modeling Dr. M.E. Fayad, Professor Software Engineering Department,
UML -Part 3. Dynamic Diagram Types Interaction Diagrams - Set of objects or roles and the messages that can be passed among them. – Sequence Diagrams.
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.
E-Learning Material Business Processes. What’s a business process? Activities and Actions UML notation Decisions Objects and roles Examples.
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.
A Student Guide to Object-Oriented Development
Activity diagrams M Taimoor Khan
R McFadyen Activity Diagrams Activity diagrams are used to present the procedural steps of an algorithm An algorithm comprises any of the following.
 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.
UML ACTIVITY DIAGRAM 1. Recap Formal Use Case diagram UML notation for use cases Examples 2.
Algorithms. Teacher Lead Activity What is an algorithm? Homework Recap!
Activity Diagrams. Notation Activity1()cActivity2() 1. Activities 2. Transition.
Flowcharts The following sample flowcharts are easy to customize. Simply click on a word, shape or rule to edit, change color or adjust an element. Contents.
Activity Diagrams Dan Fleck Coming up: Activity Diagram.
Analysis Classes Unit 5.
ACTIVITY DIAGRAMS Pertemuan 20
Unified Modeling Language
Activity and State Transition Diagram
Activity Diagram.
Visit for more Learning Resources
Analysis Modeling Dynamic Modeling.
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.
Activity Diagrams.
UML Activity Diagrams.
Activity Diagrams (Ch 8)
Process Modeling: Activity/Swimlane Diagrams
Systems Analysis and Design in a Changing World, 6th Edition
Software System Engineering
Week 12: Activity & Sequence Diagrams
Activity Diagrams Dan Fleck Coming up: Activity Diagram.
Activity Diagrams.
Other UML Diagramming Techniques
Flow Diagrams Start End
Activity Diagrams Dan Fleck Coming up: Activity Diagram.
Library Search Procedure
Flowcharts Activity One
Object-Oriented Analysis & Design
Presentation transcript:

Activity Diagrams

Definition Activity diagrams represent the dynamics of the system. They are flow charts that are used to show the workflow of a system. They show. The flow of control from activity to activity in the system, What activities can be done in parallel. Alternate paths through the flow. They can show the flow across use cases or within a use case. Helpful in developing system sequence diagrams (SSD)

Activity Diagram Supplements the use-case by providing a diagrammatic representation of procedural flow Details: Start is a single circle End is a bulls-eye Decisions are diamonds (guards must be on both branches of the diamond!) Start Marker Stop Marker

Activity Diagram Example Fork/Branch To show concurrent activity, activity diagrams allow branches and joins. You can also reference or include other activity diagrams Got here Class -- Sept 30th 2008 Synch. Bar (Join) Join Splitting Bar (Fork)

[no coffee] [no cola] Find Beverage [found coffee] Put coffee in filter Add water to reservoir Get cups Get can of cola Put filter in machine Turn on machine Brew coffee Pour coffee Drink Beverage

When to Use Activity Diagrams Do use them for Analysing Use Cases. Understanding workflow across many Use Cases. Dealing with multi-threaded applications. Don’t use them to see how objects collaborate. to see how an object behaves over its lifetime.

Example: Activity Diagram for Receiving an Order Receive order * for each line item on order Check line item [failed] Authorise Payment [in stock] Cancel Order [succeeded] Assign to Order [need to reorder] Reorder item [stock assigned to all line items and payment authorised] Dispatch Order

Example: Activity Diagram for receiving Supply Receive Supply Example: Activity Diagram for receiving Supply Choose outstanding order items * for each chosen order item Assign goods to order [all outstanding order items filled] Add remainder to stock Dispatch Order

Combined Activity Diagram Receive order Receive Supply * for each line item on order Choose outstanding order items Check line item Authorise Payment [in stock] [failed] * for each chosen order item [succeeded] Assign to Order Assign goods to order Cancel Order [need to reorder] Reorder item [stock assigned to all line items and payment authorised] [all outstanding order items filled] Dispatch Order Add remainder to stock

[all outstanding order items filled] Finance Order Processing Stock Manager Receive order Receive Supply * for each line item on order Choose outstanding order items Check line item Authorise Payment [in stock] [failed] * for each chosen order item [succeeded] Assign to Order Assign goods to order Cancel Order [need to reorder] Reorder item [stock assigned to all line items and payment authorised] [all outstanding order items filled] Dispatch Order Add remainder to stock With Swimlanes

Example: Business Level Activity Diagram of the Library With Swimlanes member Librarian [borrower] Find book on shelf [returning] [returner] Wait in queue [borrowing] Record return Put book back of shelf Record borrowing Prepare for next member