Working with a UML 2.0 Message

From RAD Studio
Jump to: navigation, search

Go Up to Interaction Diagram Procedures

This section describes techniques for working with messages in sequence and communication diagrams. Although the two diagram types are equivalent, the techniques for dealing with messages differ.

When you manage UML 2.0 messages, you have the following options:

  1. Show or hide reply message
  2. Nest messages
  3. Create a message from a lifeline back to itself
  4. Create a message link that corresponds to an operation call

To show or hide reply message:

  1. Select a call message in an interaction diagram.
  2. In the Link tab of the Object Inspector, check or clear show reply message.

To nest messages:

  1. You can nest messages by originating message links from an execution specification. The nested message inherits the numbering of the parent message. For example, if the parent message has the number 1, its first nested message is 1.1.
  2. It is also possible to create message links back to the parent execution specifications.

To create a message from a lifeline back to itself:

  1. Click the Message button on the Tool Palette.
  2. In a Sequence diagram, click twice the lifeline in the place where you want this message to appear.In a Communication diagram, click twice the lifeline anywhere.

To create a message link that corresponds to an operation call:

  1. Create an interaction.
  2. Create a message link between two lifelines in the interaction.
  3. Open the Link tab of the message link Object Inspector.
  4. In the signature field, click the browse button.
  5. In the Model or Favorites, select the desired operation.
  6. Click OK.

The message link is named according to the name of the operation.

See Also