0% found this document useful (0 votes)
9 views16 pages

Chapter2-2 DynamicAnalysis AD

The document discusses activity diagrams in UML, which represent the execution state of mechanisms through a sequence of steps and control streams. It outlines key concepts such as activities, transitions, control nodes, decision nodes, and swimlanes, emphasizing their roles in modeling business processes and use cases. Additionally, it includes a case study example related to repair management software to illustrate the application of activity diagrams.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views16 pages

Chapter2-2 DynamicAnalysis AD

The document discusses activity diagrams in UML, which represent the execution state of mechanisms through a sequence of steps and control streams. It outlines key concepts such as activities, transitions, control nodes, decision nodes, and swimlanes, emphasizing their roles in modeling business processes and use cases. Additionally, it includes a case study example related to repair management software to illustrate the application of activity diagrams.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 16

Chapiter II: Dynamic analysis

UML

2015-2016
Activity
diagram

Plan
Objectives
Key Concepts & Graphical Representation
Activity diagram

Objectives

Represents the state of execution of a mechanism, in the form of a sequence


of steps grouped sequentially in parallel branches of control streams.

Behavioral diagram that allows to:


❖ Model business processes (analysis step).
❖ Describe the generic behavior of a use case (analysis step).
❖ Describe in detail the behavior of an operation (design step).

It describes the graphical representation of the behavior of a


method or the flow of a use case or a business process.

3
Activity diagram

Key Concepts & Graphical Representation

Activity diagram = Nodes (actions) linked by transitions

4
Activity diagram

Key Concepts & Graphical Representation


Activities and transitions

 An activity represents an execution of a mechanism, a sequence of sequential


steps. drawn using a rectangle with rounded corners.

❖ The passage from one activity to another is materialized by a transition [drawn


by an arrowhead].

❖ Transitions are triggered by the end of one activity and cause the immediate
start of another (they are automatic).

5
Diagramme d’activités

Key Concepts & Graphical Representation

Control Nodes
Control node is an abstract activity node used to coordinate flows between nodes in
an activity.
There are several types of control nodes:
⮚ Initial node
⮚ Final node
⮚ Decision node
⮚ Merge node
⮚ Fork node
⮚ Join node

6
Activity diagram
Key Concepts & Graphical Representation
Bifurcation and union node
• Represented by a synchronization bar.
• Allows to open and close parallel branches within an execution flow:
❑ Disjunctive synchronization : bifurcation (Fork)
⮚Breakdown of the flow into two or more flows.
⮚Transitions that start from a synchronization bar take place at the same time.
⇒ A disconnection node is used to split a single incoming flow into several
simultaneous flows.
⮚Conjunctive synchronization: union (join)
⮚Recomposition of the flow.
⮚A synchronization bar is crossed only after all the related transitions have been
completed.
⇒ Control node that synchronizes multiple simultaneous incoming flows into a
single outgoing flow.
7
Activity diagram

Bifurcation
Node

Union Node

8
Activity diagram
Key Concepts & Graphical Representation
Decision Node
Is a control node that allows a choice to be made
between multiple outgoing flows.
Represents a decision with alternative paths.

❖ It has one incoming arc and several outgoing arcs.


❖ These are usually accompanied by guard conditions to
condition the choice.

When an activity requires a decision before


moving on to the next activity, add a diamond
between the two activities. Outgoing replacementsts
must be tagged with a guard condition or expression [].

9
Activity diagram
Key Concepts & Graphical Representation

Decision node
Exemple : order verification

Valid Order ?

10
Activity diagram
Key Concepts & Graphical Representation

Fusion node

Is a control node that combines multiple incoming alternate streams into a single
outgoing stream.

❖It is used to bring together different decision paths created using a decision node.
❖It is not used to synchronize competing flows but to accept one of several flows.

11
Activity diagram
Key Concepts & Graphical Representation
Iteration

order

12
Activity diagram

Key Concepts & Graphical Representation

Example

13
Activity diagram
Key Concepts & Graphical Representation
Swimlanes

14
Activity diagram

Key Concepts & Graphical Representation


Swimlanes

Activity diagrams indicate what happens without specifying who does what (in
programming terms, they do not specify which class is responsible).

In order to organize an activity diagram according to the different people


responsible for the actions represented, it is possible to define «Swimlanes».

Often correspond to actors or organizational units of the model (e.g.


"order department", "billing department", "customer").

15
Case study: MyCar

The repair management software is primarily intended for the workshop


manager, and should enable him to enter the repair sheets and the work
done by the various workshop employees. To do their work, mechanics and
other shop employees go to the store to get spare parts. When the software
is installed, the shop employees will only provide parts for vehicles that have
a repair record open; they will enter the parts provided directly from a
terminal in the store. When a repair is completed, the shop manager will test
the car. If everything is in order, he puts the car on the customer's lot and
closes the computerized repair form. The repair forms completed by the
workshop manager should be able to be imported by the accountant into the
accounting software.

Create an activity diagram for the entire repair process

16

You might also like