Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”

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

Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”
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.
© 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
Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”
7M701 1 Activity Diagram. 7M701 2 Example 7M701 3 Activity Diagram: what is it? Describes activities and flows of data or decisions between activities.
Activity Diagrams [Arlow and Neustadt, 2005] CS 425 / 625 Seminar on Software Engineering University of Nevada, Reno Department of Computer Science & Engineering.
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.
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.
1 CS 426 Senior Projects Chapter 14: Activity Diagrams [Arlow and Neustadt, 2005] February 17, 2009.
7M822 UML Activity Diagrams 6 October 2008.
1999 – 2006 M.E. Fayad SJSU -- CmpE Software Engineering Management Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
SE-565 Software System Requirements More UML Diagrams.
Software Engineering EKT 420. What is Activity Diagram Activity diagrams are graphical representations of workflows of stepwise activities and actions.
Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”
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.
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.
Chapter 5 – System Modeling
Interaction Models (2): Sequence Diagrams Extracted from textbook: Object Oriented Modeling and Design with UML M. Blaha, J. Rumbaugh 1.
Conceptual Modelling – Behaviour
1 Devon M. Simmonds University of North Carolina, Wilmington CSC450 Software Engineering WorkFlow Modeling with Activity Diagrams.
Business Informatics Group Institute of Software Technology and Interactive Systems Vienna University of Technology Favoritenstraße 9-11/188-3, 1040 Vienna,
February 20, 2012  Present Fayad KSU – SWE Process and Modeling Software Process and Modeling Dr. M.E. Fayad, Professor Software Engineering Department,
Programming Logic and Design Fourth Edition, Comprehensive Chapter 15 System Modeling with the UML.
Activity diagrams. Introduction ● Activity diagrams are a behavioural model that represent the dynamics of the system. ● An activity diagram is essentially.
Information System Design IT60105
© 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1 UML Activity Diagrams.
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.
Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”
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.
Chapter 14: Activity Diagrams November 2015 [Arlow and Neustadt, 2005] CS 425/625 Senior Projects University of Nevada, Reno Department of Computer Science.
Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”
Smith’s Aerospace © P. Bailey & K. Vander Linden, 2005 Procedural Activity Patrick Bailey Keith Vander Linden Calvin College.
 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.
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.
Cliquez pour modifier le style du titre Cliquez pour modifier les styles du texte du masque Deuxième niveau Troisième niveau Quatrième niveau Cinquième.
© 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1 UML Activity Diagrams.
Business Process and Functional Modeling
UML Chapter 17.
Appendix 3 Object-Oriented Analysis and Design
Activity Diagrams.
WHAT IS A Process Map? Illustration of the sequence of activities, inputs and outputs to the activities, and relationship across multiple functions, or.
Chapter 4: Business Process and Functional Modeling, continued
Unified Modeling Language
Activity Diagram.
Activity and State Transition Diagram
Visit for more Learning Resources
Activity Diagrams Activity diagrams describe the workflow behavior of a system.  The diagrams describe the state of activities by showing the sequence.
Activity Diagrams.
Business System Development
UML Activity Diagrams & State Charts
Chapter 14: Activity Diagrams
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.
Chapter 14: Activity Diagrams
Chapter 14: Activity Diagrams
Appendix 3 Object-Oriented Analysis and Design
Behavioral Diagrams P. P. Mahale
Object-Oriented Analysis & Design
Interaction Models (2): Activity Diagrams
Presentation transcript:

Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”

 Dynamic view – activity diagrams ◦ role ◦ basic concepts ◦ advanced concepts ◦ examples 2

 Activity Diagrams – a kind of UML diagrams describing the dynamics of the system. They graphically describe the sequential and/or parallel control flows and data flows among orderly arranged activities, actions and objects.  Activity diagrams show the workflow from a start point to the finish point detailing the many decision paths that exist in the progression of events contained in the activity.  Activity diagrams are useful for business modeling where they are used for detailing the processes involved in business activities. 3

 Activity - activity represents a business process; fundamental elements of the activity are actions and control elements (decision, division, merge, initiation, end, etc.)  Elements are connected by so-called “activity edges” and form the “control flow” or ‘flow’. The execution of an activity can contain parallel flows.  Edge (Control Flow) - edges, represented by arrows, connect the individual components of activity diagrams and illustrate the control flow of the activity. A name can be attached to an edge. 4

 Action is an individual step within an activity. The action can possess input and output information. Specific actions are calling other actions, receiving an event, and sending signals.  Initial Node - the initial node is the starting point of an activity. Usually there is only one initial node but in complex real-time systems there may be more initial nodes, which means that several flows start at the beginning of an activity. It is also possible that an activity has no initial node, but is initiated by an event. 5

 Activity Final Node - the activity final node indicates that an activity is completed. An activity diagram can have more than one exit in the form of activity final nodes. If several parallel flows are present within an activity, all flows are stopped at the time the activity final node is reached.  Flow Final Node - a flow final node terminates a flow. Unlike the activity final node, which ends an entire activity, reaching a flow final node has no effect on other parallel flows that are being processed within the activity at the same point in time. In this way, parallel flows can be terminated individually and selectively. 6

7 Initial Node Activity Final Node Activity Edge/Control Flow

 Decision Node – a conditional branch point or decision node, represented by a diamond. A decision node has one input and two or more outputs. Each output has a condition attached to it, which is written in brackets. If a condition is met, the flow proceeds along the appropriate output. An ‘else’ output can be defined along which the flow can proceed if no other condition is met.  Merge Node - a diamond which has several inputs and only one output. Its purpose is the merging of flows. The inputs are not synchronized; if a flow reaches such a node it proceeds at the output without waiting for the arrival of other flows. 8

9 Decision Node Decomposed activity

10 Activity diagram for the decomposed activity Merge Node

 Fork - for the branching of flows in two or more parallel flows we use a synchronization bar, which is depicted as a thick horizontal or vertical line. Branching allows parallel flows within activities. A fork has one input and two or more outputs.  Join - for the consolidation of two or more parallel flows we also use a synchronization bar, which is depicted as a thick horizontal or vertical line. During consolidation synchronization takes place, meaning the flow proceeds only after all incoming flows have reached the consolidation point. Join has two or more inputs and one output. 11

 Data flow – flow of data between an object and activities or actions effecting this object. Objects and data flows are inserted within an activity diagram in the following situations: ◦ we want to indicate the responsibility of an object, ◦ we want to depict the flow of the object, ◦ the state of the object is changed. 12

13 Fork Join Data flow Object

 Activity Partition - the individual elements of an activity diagram can be divided into individual areas or ‘partitions’. Various criteria can lead to the creation of these partitions: organization entities, cost centers, locations, etc. Individual steps of an activity will be assigned to these partitions. Each partition is set apart from its neighboring partition by a horizontal or vertical continuous line; from this stems the term swim lanes. Each partition receives a name. Partitions can be arranged in a two-dimensional manner; in this case the activity diagram is divided into individual cells like a grid. 14

15 Activity partitions

 Call Activity Action - an activity can be called from within another activity. Calling, in itself, is an action; the outcome of the call is another activity. In this way, activities can be nested within each other and can be represented with different levels of detail.  Accept Event Action - this action waits for an event to occur. After the event is accepted, the flow that comes from this action (and is defined in the activity diagram) is executed. Many business processes are initiated by events, for example, processing an order by the receipt of an order, or delivery by the receipt of a payment. 16

 Accept Time Event Action - at a definite point in time, this action starts a flow in the activity diagram. An hourglass symbol can be used to represent the acceptance of a time event. A typical example of a time event is triggering reminders after the deadline for payment has passed.  Send Signal Action – is an action that creates a signal which is sent to an accepting activity. The accepting activity accepts the signal with the action “accept an event” and can react accordingly, meaning according to the flow that originates from this node in the activity diagram. 17

 Expansion Region - is a structured activity region (defined fragment of a diagram), with clearly specified inputs and outputs, performed repeatedly, accordingly to the number of elements in the input.  Interruptible Activity Region - surrounds a group of actions that can be interrupted, as a result of the interruption flow.  Exception handler - outlines the activities that should be executed if the specified exception occurs during execution of a protected action. 18

19 Expansion region

20 Interruptible Activity Region Exception handler Except event action Except time event action

21  Identification of basic activities based on use case scenario,  Connecting activities using control flows,  Optional decomposition of activities,  Identification of decision flows and parallel control flows,  Introduction of data flows,  Identification of criteria and partitions of the diagram,  Introduction of expansion and interruptible regions,  Introduction of exception handlers.

22  UML Activity Diagrams: Guidelines us/library/dd aspx us/library/dd aspx  UML Activity Diagrams: Reference  us/library/dd aspx us/library/dd aspx  Activity Diagrams diagrams.html diagrams.html  UML Activity Diagram Examples diagrams-examples.html diagrams-examples.html