Lecture 4: 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

© 2006 ITT Educational Services Inc. SE350 System Analysis for Software Engineers: Unit 9 Slide 1 Appendix 3 Object-Oriented Analysis and Design.
1 Chapter 4 Dynamic Modeling and Analysis (Part I) Object-Oriented Technology From Diagram to Code with Visual Paradigm for UML Curtis H.K. Tsang, Clarence.
Software Engineering COMP 201
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 1 Object-oriented design 2.
Multimedia & Website Design Working in Teams. This week Look at team work issues in web design Plan file and directory conventions Introduce formal software.
Requirements Analysis Activity Diagrams b511.ppt © Copyright De Montfort University 2000 All Rights Reserved INFO2005 Requirements Analysis.
Use Case Diagrams. Use Case Use case A view to system seen from outside(user) User’s requirements on system A set of scenario for an actor to achieve.
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.
Interaction Modeling. Sequence Models  There are two kinds of sequence models: scenarios and sequence diagrams  A scenario is a sequence of events that.
Lecture 6 Unified Modeling Language (UML)
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.
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 21. Review ANALYSIS PHASE (OBJECT ORIENTED DESIGN) Functional Modeling – Use case Diagram Description.
Chapter 4 – Requirements Engineering Lecture 3 1Chapter 4 Requirements engineering.
1 Devon M. Simmonds University of North Carolina, Wilmington CSC450 Software Engineering WorkFlow Modeling with Activity 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.
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.
A Student Guide to Object- Oriented Development Chapter 10 Designing objects and classes.
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.
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.
CS223: Software Engineering
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 5th Edition Copyright © 2015 John Wiley & Sons, Inc. All rights.
OCR A Level F453: High level languages Programming techniques a. identify a variety of programming paradigms (low-level, object- oriented,
Pepper modifying Sommerville's Book slides
Activity Diagram.
Systems Analysis and Design in a Changing World, Fourth Edition
Business Process and Functional Modeling
UML Chapter 17.
Chapter 3 DOCUMENTING ACCOUNTING SYSTEMS
Appendix 3 Object-Oriented Analysis and Design
Analysis Classes Unit 5.
Welcome to M301 P2 Software Systems & their Development
Chapter 4: Business Process and Functional Modeling, continued
Chapter 5 System modeling
Chapter 8 Advanced Interaction Modeling
Object-Oriented Analysis and Design
Problem Solving How do we attack a large problem?
Use Case Model.
Unified Modeling Language
The Next Stage in Analysis: Systems Use Case Diagrams
Rob Gleasure IS3320 Developing and Using Management Information Systems Lecture 14: Data-Flow Diagrams 1 (Context-Level.
Subject Name: Object oriented Modeling and Design
Parallel Programming Patterns
Activity Diagram.
Week 10: Object Modeling (1)Use Case Model
Activity and State Transition Diagram
Model-Based Testing Model the system
Visit for more Learning Resources
CS 641 – Requirements Engineering
CS 641 – Requirements Engineering
SNS College of Engineering Coimbatore
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.
Software Engineering Chapter 5 (Part 3) System Modeling Dr.Doaa Sami.
Week 12: Activity & Sequence Diagrams
Activity Diagrams.
BPMN - Business Process Modeling Notations
Dynamic Modeling Lecture # 37.
Software design and architecture
Week 8 Lecture 1: Identifying Actors and Activities
Appendix 3 Object-Oriented Analysis and Design
Chapter 4 Sequence Diagrams
Presentation transcript:

Lecture 4: Activity Diagrams CS2341 Lecture 4: Activity Diagrams Robert Stevens http://www.cs.man.ac.uk/~stevensr 11/15/2018 CS2341

User Requirements and Business Process User requirements interviews conveys (or implies) the main processes within the problem domain Processes are visible from the business viewpoint Are important at all levels of system development The system is a model of the business process 11/15/2018 CS2341

On Processes Processes are problematic too Many are non-deterministic Many are dynamic - they change rapidly They often involve humans Difficult to gather User interface is an important aspect The system model can change the process 11/15/2018 CS2341

Process is... Structured change, i.e. “there is a pattern of events which an observer may recognise across different actual examples of the process” A specific ordering of work activities across time and place … a structure for action. Davenport, 1993 A bundle of goal directed actions that are performed by actors. Bauer et al, 1993 11/15/2018 CS2341

On Processes In general a process should only exist in order to meet some goal, when you identify a process try to identify a quantifiable goal as well Then identify the Roles which are to be played by actors in order to achieve that goal Your interviews have to uncover actors, activities and their performance 11/15/2018 CS2341

Representing Process Many different types of process, both natural (e.g. fossilisation) and artificial (e.g. articulated by some agent to effect a transformation) Notations for capturing models of processes Many different types of representation: narrative, mathematics especially process algebras diagrammatic techniques: DFDs, RADs, UML Activity Diagrams software enactment: Simulations 11/15/2018 CS2341

Process and UML Activity Diagrams designed to be a simplified look at what happens during a process highlights the activities within a process First stage in capturing what the system will model Embarking on a progression from real world to system world 11/15/2018 CS2341

Activity Diagrams Are an extension of state diagrams State diagrams highlight states and represent activities as arrows between states Activity diagrams highlight activities Need to represent: Indicate start and end; Actors and activities Different roles Decisions and transitions Branches and concurrency 11/15/2018 CS2341

Activity Diagrams I Each activity is represented by a rounded rectangle The processing within an activity completes and then an automatic transition to the next activity occurs. Activity 1 11/15/2018 CS2341

Activity Diagrams II An arrow represents the transition from one activity to the next. The starting point of an activity diagram is represented by a filled-in circle. The end point is represented by a bullseye 11/15/2018 CS2341

Basic Flows Thus: Wake Up Eat Breakfast 11/15/2018 CS2341

Decisions Most processes come to a point where a choice need to be made This is known as a decision point, one path leads to one set of activities, the other to another set. These two paths are mutually exclusive. 11/15/2018 CS2341

Decision points I Wake Up Eat Breakfast Go for a walk [not hungry] 11/15/2018 CS2341

Concurrency Clearly some processes possess concurrent rather than alternative paths Such paths run at the same time (ie are concurrent) and then come together again The split and merge are represented as solid bold horizontal lines 11/15/2018 CS2341

Concurrency II Goto lecture Thus Listen Write notes 11/15/2018 CS2341

Signals During a sequence of activities, it is possible to send a signal. When received, the signal causes activities to take place. The symbol for sending a signal is a convex pentagon The symbol for receiving a signal is a concave polygon Indicate input and output events When received activity takes place Order a drink Buy a drink 11/15/2018 CS2341

Signals Thus: Enter pub Recognise rich friend Signal for a drink Order a drink Pay for a drink Enjoy free drink 11/15/2018 CS2341

Swimlanes I In fact in the previous example we really now need to introduce a new concept The signal has, as a side effect, introduced the notion of two actors in this process the poor student the rich friend We often need this concept of ROLES 11/15/2018 CS2341

Swimlanes II The activity diagram adds this dimension of visualising roles To do this, you separate the diagram into parallel lanes called swimlanes Each swimlane shows the name of the role at the top, and presents the activities of each role. Transitions can take place between swimlanes 11/15/2018 CS2341

Poor student Rich Friend Thus: Swimlanes III Poor student Rich Friend Enter pub Recognise rich friend Call for a drink Order a drink Pay for a drink Enjoy free drink 11/15/2018 CS2341

Activity Diagrams Can be used at all stages of development since they support the notion of hybrid diagrams In general we can use any sensible UML symbol in an activity diagram You can even show an activity diagram for a process inside an object symbol 11/15/2018 CS2341

Activity diagrams We will be using them as a means of capturing the business processes associated with the travel shop A model of the travel shop in the real world But … beware .. We are at this stage only trying to understand the business process We do not want to produce a flowchart of a software algorithm Used to check understanding with the client Use during the user requirements sessions 11/15/2018 CS2341

Scenario Definition User requirements session to establish the context for the system The results of the interactive session with the client are recorded in Activity Diagrams which model: The basic business processes By the use of swimlanes, the main roles that are associated with these processes 11/15/2018 CS2341

What’s been achieved? Nothing so far has referred specifically to the proposed computer system We are understanding the business and the problem domain Only when this is completed shall we turn our attention to gathering system requirements and the envisioning of the proposed computer system Process model to system model 11/15/2018 CS2341