The UML’s behavioural diagrams are used to visualise, specify, construct and document the dynamic aspects of a system. The dynamic aspects of a system represent its changing parts. The UML’s behavioural diagrams are roughly organised around the major ways the dynamic aspects of a system are modelled:

Use Case Diagram Organises the behaviours of the system.
Sequence Diagram Focuses on the time ordering of messages.
Communication Diagram Focuses on the structure of objects exchanging messages.
State Machine Diagram Focuses on the changing state of a system, driven by events.
Activity Diagram Focuses on the flow of control from activity to activity.
Interaction Overview Diagram Hybrid of Activity and Sequence Diagrams.
Timing Diagram Focuses on actual times across different objects or roles.

The Interaction Overview and Timing Diagrams are advanced diagram types, not discussed in detail in this document. See the UML Reference Manual for further details.

Use Case Diagrams

A use case diagram shows a set of use cases and actors (special kinds of classes) and their relationships. Use case diagrams address the static use case view of a system and are especially important in organising and modelling the behaviours of the system.

Sequence Diagrams

A sequence diagram is a kind of interaction diagram. Interaction diagrams show the interaction of a set of objects or roles including the messages that may be dispatched among them. A sequence diagram is an interaction diagram that emphasises the time-ordering of messages. Sequence diagrams and communication diagrams represent the same basic concepts, but with a different view of these concepts.

An example Sequence diagram is shown below, generated using PlantUML:

Sequence Diagram
An example sequence diagram

Communication Diagrams

A communication diagram is an interaction diagram that emphasises the structural organisation of the objects or roles that send and receive messages. Sequence diagrams and communication diagrams represent similar basic concepts, but with different view of these concepts.

State Machine Diagrams

A state machine diagram shows the state machine for part of a system, illustrating the states, transitions, events and activities involved. A state machine diagram shows the dynamic view of a system, illustrating the flow of control from state to state within a single object.

State Machine
A simple state machine

Activity Diagrams

An activity diagram shows the flow of control from activity to activity within a system. They are the flowcharts of the UML. Unlike traditional flowcharts, and activity diagram can show concurrency as well as branches of control. Activity diagrams address the dynamic view of a system. They are useful in modelling the function of a system, emphasising the flow of control among elements in the system.

Interaction Overview Diagrams

An interaction overview diagram is a hybrid of an activity diagram and sequence diagram. These diagrams have specialised uses and are not discussed in this guide. See the UML Reference Manual for more details.

Timing Diagrams

An advanced interaction diagram type, called timing diagrams are also available in the UML, but are not discussed in this guide. See the UML Reference Manual for further information on timing diagrams.

Comments