Denote Lifecycle of an Element

To capture element lifetimes using messages that are denoted as New or Delete message types, follow the steps below

Step

Action

1

Double-click on a message within a Sequence diagram to display the Message Properties dialog.

2

In the Lifecycle field, click on the drop-down arrow and select New or Delete.

3

Click on the OK button to save the changes.

Example Diagram:     The example below shows two elements that have specific creation and deletion times

Sequence Diagram Element Lifecycle

Notes:

  • To show the termination X on the lifeline in the example diagram, you must switch on garbage collection: Tools | Options | Diagram > Sequence: Garbage Collect.