Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 1
Activity Diagrams
Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 2
Notations
Activity name • Activity Name (manual, automatic)
Event
• Events: things that happen
Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 3
Example of a Activity Diagram
with a Frame
Activity Nodes & Edges
• An activity diagram consists of nodes and edges
• There are three types of activity nodes
Control nodes
Executable nodes
– Most prominent: Action
Object nodes
– E.g. a document
• An edge is a directed connection between nodes
• There are two types of edges
– Control flow edges
– Object flow edges
in an Activity Control Nodes
Diagram
• Initial node
• Final node
–Activity final node
–Flow final node
• Fork node
• Join node
• Merge node
• Decision node
Activity Diagram Example
Fork Join Merge
node node node
Initial
node
Final
node
Activity Diagrams can model Concurrency
Allocate
Splitting Resources Synchronization
Document
Incident
Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 8
Activity Diagram
Grouping of Activities
Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 9
Action Nodes and Object
Nodes
• Action Node Action
Name
Object
• Object Node Name
Write Review
Thesis Thesis Thesis
Activity Diagram Example
Action
Object
node
Activity Nodes & Edges
• An activity diagram consists of nodes and edges
• There are three types of activity nodes
Control nodes
Executable nodes
– Most prominent: Action
Object nodes
– E.g. a document
• An edge is a directed connection between nodes
• There are two types of edges
– Control flow edges
– Object flow edges
Activity Diagram Example
Control
flow
Object
flow