volume_mute

Reading a UML Activity Diagram

publish date2026/06/08 03:53:21.067339 UTC

volume_mute

The diagram below shows part of the involuntary patient detention process modeled as a UML activity diagram.

Confirm detention decision Inform patient of rights Record detention decision «system» Mentcare ? [dangerous] Find secure place [not available] Transfer to police station [available] Transfer to secure hospital [not dangerous] Admit to hospital «system» Admissions System Inform social care Inform next of kin Update register «system» Mentcare

Which UML notation element is used in this diagram to show that the dangerous and not dangerous paths are mutually exclusive alternatives?

Correct Answer

A diamond shape (decision node)

Explanation

A diamond shape is used as a decision node in UML activity diagrams to represent a point where the flow splits into mutually exclusive alternatives based on guard conditions shown in square brackets (e.g., [dangerous] and [not dangerous]). A solid bar is a synchronization/fork bar for concurrent flows. A filled circle marks the start. Rounded rectangles represent activities.

Reference

Software Engineering, Ian Sommerville, 9th edition


Quizzes you can take where this question appears