Lifecycle of an Element

Return to Introduction  Previous page  Next page

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.

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

SequenceDiagram3

See Also