SlideShare una empresa de Scribd logo
1 de 16
Activity Diagrams

                                   Chapter 6




Object-Oriented Software Systems Engineering – Chapter 6   Slide 1
Objectives

 In this chapter we will:
  Introduce Activity Diagrams
  Discuss where activity diagrams are used




Object-Oriented Software Systems Engineering – Chapter 6   Slide 2
Activity Diagrams

  Use activity diagrams in the context of
     system as whole
     a subsystem
     an operation


  Model dynamic aspect of a system in two ways
     a workflow -- to visualise , specify, construct, and
      document business processes
     an operation -- to model the details of a computation
      involved with parameters of the operations and its local
      objects




Object-Oriented Software Systems Engineering – Chapter 6   Slide 3
Activity Diagrams

  Activity
     a sort of state which is left by the previous activity
     activity can involve many steps, including waiting for
      events
  Transition
     an arrow line without label
     actions are included in activities rather than on the
      transition
  Synchronisation bar
     describing the co-ordination of activities
     waiting for all the subtasks to finish before proceeding
      (join),
     starting several subtasks in parallel (fork)


Object-Oriented Software Systems Engineering – Chapter 6    Slide 4
Activity Diagrams

  Decision activity
     an alternative to guard conditions on separate transitions
      leaving the same state
  Swimlanes and partitions
     several groups of related activities
     these activities are related according to which objects or
      actors perform them
  Start and stop




Object-Oriented Software Systems Engineering – Chapter 6   Slide 5
Activity Diagrams
                                                            Decision activity


                Activity 1                                              Activity 2
                                                  [condition 1]
 start                       [condition 2]


                                     Activity 3




                                                                  Activity 4         Activity 5


              Synchronisation bar


                                                                   stop
Object-Oriented Software Systems Engineering – Chapter 6                             Slide 6
Activity Diagrams - modelling workflow

  Establish a focus for the workflow to show all
    interesting activities in one diagram
  Select the business objects that have high-level
    responsibility for the parts of the overall workflow,
    and each important business object is associated
    with a swimlane
  Identify the pre-conditions and post-conditions of
    the workflow
  Specify the activities and actions that take place
    over time

Object-Oriented Software Systems Engineering – Chapter 6   Slide 7
Activity Diagrams - modelling workflow

  Provide a separate activity diagram to expand
    complicated actions or set of actions
  Consider branching activities with forking and
    joining
  There are more advanced features




Object-Oriented Software Systems Engineering – Chapter 6   Slide 8
Activity Diagrams - modelling an operation

  Collect the abstractions that are involved in the
    operation (parameters, return type, attributes)
  Identify pre & post conditions & any invariants
  Beginning at the operations initial state, specify
   the activity & actions that take place over time &
   render them in an activity diagram as either
   activity states or action states
  Use branching as necessary to specify conditional
   paths and iteration
  Use forking and joining as necessary to specify
   parallel flows of control

Object-Oriented Software Systems Engineering – Chapter 6   Slide 9
Activity Diagrams - Example

                                              [joined bank]

                                     log on



                                  second level
                                  authorisation




                         make                       manage
                        payment                   instruction




Object-Oriented Software Systems Engineering – Chapter 6        Slide 10
Library Users           Librarian                   Activity diagrams
     [borrow]          Find book                                        Example
                        on shelf
     [return]

                        Wait in
                        queue

                                                           [returning]




                                             [borrowing]
                                                               Record        Put book
                                                                return     back on shelf

  Spot the mistakes!
                                            Record
                                           borrowing
                                                                    Prepare for
                                                                     next user

Object-Oriented Software Systems Engineering – Chapter 6                          Slide 11
Customer                      Sales                   Warehouse


  Request product



                               Process order                Pull materials

                                                             Ship order



   Receive order                Bill customer


       Pay bill
                                                             Activity diagrams
                                Close order
                                                                - Example

Object-Oriented Software Systems Engineering – Chapter 6                     Slide 12
Activity diagrams
                                                               - Example 4


                                              [grade >= 40]


       print “Failed”
                             [false]

                                              [true]



                                       print “Passed”




Object-Oriented Software Systems Engineering – Chapter 6                 Slide 13
Activity Diagrams - Example


                                              [grade >= 40]


       print “Failed”
                             [false]

                                              [true]



                                       print “Passed”




Object-Oriented Software Systems Engineering – Chapter 6      Slide 14
More About Activity Diagrams

  Suitable for:
     Analysing a use case
            Understand what actions need to take place
            Describe the behavioural dependencies between objects
            Allocate operations to objects within interactive diagrams
       Understanding workflow across many cases
            Representing use cases interacting with each other
       Dealing with multithreaded applications
  Not suitable for:
     Trying to see how objects collaborate – use collaboration
      diagrams instead
     Trying to see how an object behaves over its lifetime –
      use state diagrams instead



Object-Oriented Software Systems Engineering – Chapter 6           Slide 15
Summary

 In this chapter we have:
  Introduced Activity Diagrams
  Discussed where activity diagrams are used




Object-Oriented Software Systems Engineering – Chapter 6   Slide 16

Más contenido relacionado

La actualidad más candente

06 ooad uml-07
06 ooad uml-0706 ooad uml-07
06 ooad uml-07Niit Care
 
02 ooad uml-02
02 ooad uml-0202 ooad uml-02
02 ooad uml-02Niit Care
 
8 - Architetture Software - Architecture centric processes
8 - Architetture Software - Architecture centric processes8 - Architetture Software - Architecture centric processes
8 - Architetture Software - Architecture centric processesMajong DevJfu
 
11 ooad uml-14
11 ooad uml-1411 ooad uml-14
11 ooad uml-14Niit Care
 
PATTERNS06 - The .NET Event Model
PATTERNS06 - The .NET Event ModelPATTERNS06 - The .NET Event Model
PATTERNS06 - The .NET Event ModelMichael Heron
 
Strategy Design Pattern
Strategy Design PatternStrategy Design Pattern
Strategy Design PatternGanesh Kolhe
 
Software design patterns ppt
Software design patterns pptSoftware design patterns ppt
Software design patterns pptmkruthika
 
Life & Work of Butler Lampson | Turing100@Persistent
Life & Work of Butler Lampson | Turing100@PersistentLife & Work of Butler Lampson | Turing100@Persistent
Life & Work of Butler Lampson | Turing100@PersistentPersistent Systems Ltd.
 

La actualidad más candente (11)

Ch14
Ch14Ch14
Ch14
 
06 ooad uml-07
06 ooad uml-0706 ooad uml-07
06 ooad uml-07
 
02 ooad uml-02
02 ooad uml-0202 ooad uml-02
02 ooad uml-02
 
8 - Architetture Software - Architecture centric processes
8 - Architetture Software - Architecture centric processes8 - Architetture Software - Architecture centric processes
8 - Architetture Software - Architecture centric processes
 
11 ooad uml-14
11 ooad uml-1411 ooad uml-14
11 ooad uml-14
 
PATTERNS06 - The .NET Event Model
PATTERNS06 - The .NET Event ModelPATTERNS06 - The .NET Event Model
PATTERNS06 - The .NET Event Model
 
Ooad ch 5
Ooad ch 5Ooad ch 5
Ooad ch 5
 
Strategy Design Pattern
Strategy Design PatternStrategy Design Pattern
Strategy Design Pattern
 
Activity diagram
Activity diagramActivity diagram
Activity diagram
 
Software design patterns ppt
Software design patterns pptSoftware design patterns ppt
Software design patterns ppt
 
Life & Work of Butler Lampson | Turing100@Persistent
Life & Work of Butler Lampson | Turing100@PersistentLife & Work of Butler Lampson | Turing100@Persistent
Life & Work of Butler Lampson | Turing100@Persistent
 

Destacado

BPMN 2.0 Descriptive Constructs
BPMN 2.0 Descriptive Constructs  BPMN 2.0 Descriptive Constructs
BPMN 2.0 Descriptive Constructs Mustafa Jarrar
 
Collaboration Diagram
Collaboration DiagramCollaboration Diagram
Collaboration Diagramfahad_uaar
 
Seminar on Parallel and Concurrent Programming
Seminar on Parallel and Concurrent ProgrammingSeminar on Parallel and Concurrent Programming
Seminar on Parallel and Concurrent ProgrammingStefan Marr
 
. 01 introduction_to_module
. 01 introduction_to_module. 01 introduction_to_module
. 01 introduction_to_moduleAPU
 
01 introduction to_module
01 introduction to_module01 introduction to_module
01 introduction to_moduleAPU
 
Result Monitoring System using SMS thesis
Result Monitoring System using SMS thesisResult Monitoring System using SMS thesis
Result Monitoring System using SMS thesisCarul Push
 
6293213 sip-presentation
6293213 sip-presentation6293213 sip-presentation
6293213 sip-presentationJoe Trial
 
Sequence Diagram
Sequence DiagramSequence Diagram
Sequence Diagramweichen
 
Collaboration diagram- UML diagram
Collaboration diagram- UML diagram Collaboration diagram- UML diagram
Collaboration diagram- UML diagram Ramakant Soni
 
Sequence diagram
Sequence diagramSequence diagram
Sequence diagramRahul Pola
 
Chapter 5 software design
Chapter 5 software designChapter 5 software design
Chapter 5 software designPiyush Gogia
 
Erp --functional-modules
Erp --functional-modulesErp --functional-modules
Erp --functional-modulesRavi shankar
 
Design concepts and principles
Design concepts and principlesDesign concepts and principles
Design concepts and principlessaurabhshertukde
 

Destacado (15)

BPMN 2.0 Descriptive Constructs
BPMN 2.0 Descriptive Constructs  BPMN 2.0 Descriptive Constructs
BPMN 2.0 Descriptive Constructs
 
Collaboration Diagram
Collaboration DiagramCollaboration Diagram
Collaboration Diagram
 
Seminar on Parallel and Concurrent Programming
Seminar on Parallel and Concurrent ProgrammingSeminar on Parallel and Concurrent Programming
Seminar on Parallel and Concurrent Programming
 
SIP for geeks
SIP for geeksSIP for geeks
SIP for geeks
 
. 01 introduction_to_module
. 01 introduction_to_module. 01 introduction_to_module
. 01 introduction_to_module
 
01 introduction to_module
01 introduction to_module01 introduction to_module
01 introduction to_module
 
Result Monitoring System using SMS thesis
Result Monitoring System using SMS thesisResult Monitoring System using SMS thesis
Result Monitoring System using SMS thesis
 
6293213 sip-presentation
6293213 sip-presentation6293213 sip-presentation
6293213 sip-presentation
 
Sequence Diagram
Sequence DiagramSequence Diagram
Sequence Diagram
 
Collaboration diagram- UML diagram
Collaboration diagram- UML diagram Collaboration diagram- UML diagram
Collaboration diagram- UML diagram
 
Sequence diagram
Sequence diagramSequence diagram
Sequence diagram
 
Flow charts
Flow chartsFlow charts
Flow charts
 
Chapter 5 software design
Chapter 5 software designChapter 5 software design
Chapter 5 software design
 
Erp --functional-modules
Erp --functional-modulesErp --functional-modules
Erp --functional-modules
 
Design concepts and principles
Design concepts and principlesDesign concepts and principles
Design concepts and principles
 

Similar a 6. activity diagrams

Extending Workflow Foundation With Custom Activities
Extending Workflow Foundation With Custom ActivitiesExtending Workflow Foundation With Custom Activities
Extending Workflow Foundation With Custom Activitiesrsnarayanan
 
Klout changing landscape of social media
Klout changing landscape of social mediaKlout changing landscape of social media
Klout changing landscape of social mediaDataWorks Summit
 
## Introducing a reactive Scala-Akka based system in a Java centric company
## Introducing a reactive Scala-Akka based system in a Java centric company## Introducing a reactive Scala-Akka based system in a Java centric company
## Introducing a reactive Scala-Akka based system in a Java centric companyMilan Aleksić
 
Professional JavaScript: AntiPatterns
Professional JavaScript: AntiPatternsProfessional JavaScript: AntiPatterns
Professional JavaScript: AntiPatternsMike Wilcox
 
01.egovFrame Training Book II
01.egovFrame Training Book II01.egovFrame Training Book II
01.egovFrame Training Book IIChuong Nguyen
 
SAPience.be TECHday 13 - Keneos - Mobilizing your processes with Syclo
SAPience.be TECHday 13 - Keneos - Mobilizing your processes with SycloSAPience.be TECHday 13 - Keneos - Mobilizing your processes with Syclo
SAPience.be TECHday 13 - Keneos - Mobilizing your processes with SycloKeneos
 
​Abinitio online training
​Abinitio online training​Abinitio online training
​Abinitio online trainingonlineitguru369
 
Distributed computing with Ray. Find your hyper-parameters, speed up your Pan...
Distributed computing with Ray. Find your hyper-parameters, speed up your Pan...Distributed computing with Ray. Find your hyper-parameters, speed up your Pan...
Distributed computing with Ray. Find your hyper-parameters, speed up your Pan...Jan Margeta
 
Distributed computing and hyper-parameter tuning with Ray
Distributed computing and hyper-parameter tuning with RayDistributed computing and hyper-parameter tuning with Ray
Distributed computing and hyper-parameter tuning with RayJan Margeta
 
3. use cases
3. use cases3. use cases
3. use casesAPU
 
Process State vs. Object State: Modeling Best Practices for Simple Workflows ...
Process State vs. Object State: Modeling Best Practices for Simple Workflows ...Process State vs. Object State: Modeling Best Practices for Simple Workflows ...
Process State vs. Object State: Modeling Best Practices for Simple Workflows ...Thorsten Franz
 
Business processes, business rules, complex event processing, the JBoss way
Business processes, business rules, complex event processing, the JBoss wayBusiness processes, business rules, complex event processing, the JBoss way
Business processes, business rules, complex event processing, the JBoss wayKris Verlaenen
 
Aras Innovator PLM Deployment Methodology
Aras Innovator PLM Deployment MethodologyAras Innovator PLM Deployment Methodology
Aras Innovator PLM Deployment MethodologyAras
 
software project management
software project managementsoftware project management
software project managementdeep sharma
 
QTP Training
QTP TrainingQTP Training
QTP TrainingG.C Reddy
 
Se chapter 1,2,3 2 mark qa
Se chapter 1,2,3   2 mark  qaSe chapter 1,2,3   2 mark  qa
Se chapter 1,2,3 2 mark qaAruna M
 

Similar a 6. activity diagrams (20)

Extending Workflow Foundation With Custom Activities
Extending Workflow Foundation With Custom ActivitiesExtending Workflow Foundation With Custom Activities
Extending Workflow Foundation With Custom Activities
 
Klout changing landscape of social media
Klout changing landscape of social mediaKlout changing landscape of social media
Klout changing landscape of social media
 
SAP NetWeaver Cloud Platform - Virtual Bootcamp - Part 2
SAP NetWeaver Cloud Platform - Virtual Bootcamp - Part 2 SAP NetWeaver Cloud Platform - Virtual Bootcamp - Part 2
SAP NetWeaver Cloud Platform - Virtual Bootcamp - Part 2
 
## Introducing a reactive Scala-Akka based system in a Java centric company
## Introducing a reactive Scala-Akka based system in a Java centric company## Introducing a reactive Scala-Akka based system in a Java centric company
## Introducing a reactive Scala-Akka based system in a Java centric company
 
Professional JavaScript: AntiPatterns
Professional JavaScript: AntiPatternsProfessional JavaScript: AntiPatterns
Professional JavaScript: AntiPatterns
 
01.egovFrame Training Book II
01.egovFrame Training Book II01.egovFrame Training Book II
01.egovFrame Training Book II
 
SAPience.be TECHday 13 - Keneos - Mobilizing your processes with Syclo
SAPience.be TECHday 13 - Keneos - Mobilizing your processes with SycloSAPience.be TECHday 13 - Keneos - Mobilizing your processes with Syclo
SAPience.be TECHday 13 - Keneos - Mobilizing your processes with Syclo
 
Lecture10
Lecture10Lecture10
Lecture10
 
jBPM
jBPMjBPM
jBPM
 
​Abinitio online training
​Abinitio online training​Abinitio online training
​Abinitio online training
 
Distributed computing with Ray. Find your hyper-parameters, speed up your Pan...
Distributed computing with Ray. Find your hyper-parameters, speed up your Pan...Distributed computing with Ray. Find your hyper-parameters, speed up your Pan...
Distributed computing with Ray. Find your hyper-parameters, speed up your Pan...
 
Distributed computing and hyper-parameter tuning with Ray
Distributed computing and hyper-parameter tuning with RayDistributed computing and hyper-parameter tuning with Ray
Distributed computing and hyper-parameter tuning with Ray
 
3. use cases
3. use cases3. use cases
3. use cases
 
Process State vs. Object State: Modeling Best Practices for Simple Workflows ...
Process State vs. Object State: Modeling Best Practices for Simple Workflows ...Process State vs. Object State: Modeling Best Practices for Simple Workflows ...
Process State vs. Object State: Modeling Best Practices for Simple Workflows ...
 
Business processes, business rules, complex event processing, the JBoss way
Business processes, business rules, complex event processing, the JBoss wayBusiness processes, business rules, complex event processing, the JBoss way
Business processes, business rules, complex event processing, the JBoss way
 
Aras Innovator PLM Deployment Methodology
Aras Innovator PLM Deployment MethodologyAras Innovator PLM Deployment Methodology
Aras Innovator PLM Deployment Methodology
 
software project management
software project managementsoftware project management
software project management
 
QTP Online Training
QTP Online Training QTP Online Training
QTP Online Training
 
QTP Training
QTP TrainingQTP Training
QTP Training
 
Se chapter 1,2,3 2 mark qa
Se chapter 1,2,3   2 mark  qaSe chapter 1,2,3   2 mark  qa
Se chapter 1,2,3 2 mark qa
 

Más de APU

. 1. introduction to object orientation
. 1. introduction to object orientation. 1. introduction to object orientation
. 1. introduction to object orientationAPU
 
01 introduction to_module
01 introduction to_module01 introduction to_module
01 introduction to_moduleAPU
 
. 9. oo languages
. 9. oo languages. 9. oo languages
. 9. oo languagesAPU
 
08 aggregation and collection classes
08  aggregation and collection classes08  aggregation and collection classes
08 aggregation and collection classesAPU
 
. 8. design patterns
. 8. design patterns. 8. design patterns
. 8. design patternsAPU
 
. 5. state diagrams
. 5. state diagrams. 5. state diagrams
. 5. state diagramsAPU
 
. 4. class diagrams using uml
. 4. class diagrams using uml. 4. class diagrams using uml
. 4. class diagrams using umlAPU
 
. 2. introduction to uml
. 2. introduction to uml. 2. introduction to uml
. 2. introduction to umlAPU
 
. 01 introduction_to_module
. 01 introduction_to_module. 01 introduction_to_module
. 01 introduction_to_moduleAPU
 
14 file handling
14 file handling14 file handling
14 file handlingAPU
 
13 gui development
13 gui development13 gui development
13 gui developmentAPU
 
10 exceptionsin java
10 exceptionsin java10 exceptionsin java
10 exceptionsin javaAPU
 
09 abstract classesandinterfaces
09 abstract classesandinterfaces09 abstract classesandinterfaces
09 abstract classesandinterfacesAPU
 
02 introductionto java
02 introductionto java02 introductionto java
02 introductionto javaAPU
 
9.oo languages
9.oo languages9.oo languages
9.oo languagesAPU
 
12 multi-threading
12 multi-threading12 multi-threading
12 multi-threadingAPU
 
4.class diagramsusinguml
4.class diagramsusinguml4.class diagramsusinguml
4.class diagramsusingumlAPU
 
Design patterns structuralpatterns(thedecoratorpattern)
Design patterns structuralpatterns(thedecoratorpattern)Design patterns structuralpatterns(thedecoratorpattern)
Design patterns structuralpatterns(thedecoratorpattern)APU
 
Design patterns structuralpatterns(theadapterpattern)
Design patterns structuralpatterns(theadapterpattern)Design patterns structuralpatterns(theadapterpattern)
Design patterns structuralpatterns(theadapterpattern)APU
 

Más de APU (19)

. 1. introduction to object orientation
. 1. introduction to object orientation. 1. introduction to object orientation
. 1. introduction to object orientation
 
01 introduction to_module
01 introduction to_module01 introduction to_module
01 introduction to_module
 
. 9. oo languages
. 9. oo languages. 9. oo languages
. 9. oo languages
 
08 aggregation and collection classes
08  aggregation and collection classes08  aggregation and collection classes
08 aggregation and collection classes
 
. 8. design patterns
. 8. design patterns. 8. design patterns
. 8. design patterns
 
. 5. state diagrams
. 5. state diagrams. 5. state diagrams
. 5. state diagrams
 
. 4. class diagrams using uml
. 4. class diagrams using uml. 4. class diagrams using uml
. 4. class diagrams using uml
 
. 2. introduction to uml
. 2. introduction to uml. 2. introduction to uml
. 2. introduction to uml
 
. 01 introduction_to_module
. 01 introduction_to_module. 01 introduction_to_module
. 01 introduction_to_module
 
14 file handling
14 file handling14 file handling
14 file handling
 
13 gui development
13 gui development13 gui development
13 gui development
 
10 exceptionsin java
10 exceptionsin java10 exceptionsin java
10 exceptionsin java
 
09 abstract classesandinterfaces
09 abstract classesandinterfaces09 abstract classesandinterfaces
09 abstract classesandinterfaces
 
02 introductionto java
02 introductionto java02 introductionto java
02 introductionto java
 
9.oo languages
9.oo languages9.oo languages
9.oo languages
 
12 multi-threading
12 multi-threading12 multi-threading
12 multi-threading
 
4.class diagramsusinguml
4.class diagramsusinguml4.class diagramsusinguml
4.class diagramsusinguml
 
Design patterns structuralpatterns(thedecoratorpattern)
Design patterns structuralpatterns(thedecoratorpattern)Design patterns structuralpatterns(thedecoratorpattern)
Design patterns structuralpatterns(thedecoratorpattern)
 
Design patterns structuralpatterns(theadapterpattern)
Design patterns structuralpatterns(theadapterpattern)Design patterns structuralpatterns(theadapterpattern)
Design patterns structuralpatterns(theadapterpattern)
 

6. activity diagrams

  • 1. Activity Diagrams Chapter 6 Object-Oriented Software Systems Engineering – Chapter 6 Slide 1
  • 2. Objectives In this chapter we will:  Introduce Activity Diagrams  Discuss where activity diagrams are used Object-Oriented Software Systems Engineering – Chapter 6 Slide 2
  • 3. Activity Diagrams  Use activity diagrams in the context of  system as whole  a subsystem  an operation  Model dynamic aspect of a system in two ways  a workflow -- to visualise , specify, construct, and document business processes  an operation -- to model the details of a computation involved with parameters of the operations and its local objects Object-Oriented Software Systems Engineering – Chapter 6 Slide 3
  • 4. Activity Diagrams  Activity  a sort of state which is left by the previous activity  activity can involve many steps, including waiting for events  Transition  an arrow line without label  actions are included in activities rather than on the transition  Synchronisation bar  describing the co-ordination of activities  waiting for all the subtasks to finish before proceeding (join),  starting several subtasks in parallel (fork) Object-Oriented Software Systems Engineering – Chapter 6 Slide 4
  • 5. Activity Diagrams  Decision activity  an alternative to guard conditions on separate transitions leaving the same state  Swimlanes and partitions  several groups of related activities  these activities are related according to which objects or actors perform them  Start and stop Object-Oriented Software Systems Engineering – Chapter 6 Slide 5
  • 6. Activity Diagrams Decision activity Activity 1 Activity 2 [condition 1] start [condition 2] Activity 3 Activity 4 Activity 5 Synchronisation bar stop Object-Oriented Software Systems Engineering – Chapter 6 Slide 6
  • 7. Activity Diagrams - modelling workflow  Establish a focus for the workflow to show all interesting activities in one diagram  Select the business objects that have high-level responsibility for the parts of the overall workflow, and each important business object is associated with a swimlane  Identify the pre-conditions and post-conditions of the workflow  Specify the activities and actions that take place over time Object-Oriented Software Systems Engineering – Chapter 6 Slide 7
  • 8. Activity Diagrams - modelling workflow  Provide a separate activity diagram to expand complicated actions or set of actions  Consider branching activities with forking and joining  There are more advanced features Object-Oriented Software Systems Engineering – Chapter 6 Slide 8
  • 9. Activity Diagrams - modelling an operation  Collect the abstractions that are involved in the operation (parameters, return type, attributes)  Identify pre & post conditions & any invariants  Beginning at the operations initial state, specify the activity & actions that take place over time & render them in an activity diagram as either activity states or action states  Use branching as necessary to specify conditional paths and iteration  Use forking and joining as necessary to specify parallel flows of control Object-Oriented Software Systems Engineering – Chapter 6 Slide 9
  • 10. Activity Diagrams - Example [joined bank] log on second level authorisation make manage payment instruction Object-Oriented Software Systems Engineering – Chapter 6 Slide 10
  • 11. Library Users Librarian Activity diagrams [borrow] Find book Example on shelf [return] Wait in queue [returning] [borrowing] Record Put book return back on shelf Spot the mistakes! Record borrowing Prepare for next user Object-Oriented Software Systems Engineering – Chapter 6 Slide 11
  • 12. Customer Sales Warehouse Request product Process order Pull materials Ship order Receive order Bill customer Pay bill Activity diagrams Close order - Example Object-Oriented Software Systems Engineering – Chapter 6 Slide 12
  • 13. Activity diagrams - Example 4 [grade >= 40] print “Failed” [false] [true] print “Passed” Object-Oriented Software Systems Engineering – Chapter 6 Slide 13
  • 14. Activity Diagrams - Example [grade >= 40] print “Failed” [false] [true] print “Passed” Object-Oriented Software Systems Engineering – Chapter 6 Slide 14
  • 15. More About Activity Diagrams  Suitable for:  Analysing a use case  Understand what actions need to take place  Describe the behavioural dependencies between objects  Allocate operations to objects within interactive diagrams  Understanding workflow across many cases  Representing use cases interacting with each other  Dealing with multithreaded applications  Not suitable for:  Trying to see how objects collaborate – use collaboration diagrams instead  Trying to see how an object behaves over its lifetime – use state diagrams instead Object-Oriented Software Systems Engineering – Chapter 6 Slide 15
  • 16. Summary In this chapter we have:  Introduced Activity Diagrams  Discussed where activity diagrams are used Object-Oriented Software Systems Engineering – Chapter 6 Slide 16

Notas del editor

  1. 1