Denote Lifecycle of an Element

You can capture element lifetimes using messages that are denoted as New or Delete message types. To do this, follow the steps below:

  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.

The example below shows two elements that have specific creation and deletion times.


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

Sequence Diagram Element Lifecycle