Managing Messages in a Sequence Diagram View

Creating a New Guard or Block

In a selected sequence diagram view, you can group messages by creating multiple blocks and group those blocks in a guard.

This task shows you how to:


Before you begin:
  • Create a sequence diagram view and activate it.
    Tip: From the tree, double-click a sequence diagram view to activate it.
  • Insert an actor.
  • Create at least one message between the two actors.

Create a New Guard

You can create a guard for a selected actor in an active sequence diagram view.

You can create the following types of guard:

  • Alt: alternative
  • Opt: option
  • Loop: loop
  • Par: parallel
  • Break: break

  1. From the active sequence diagram view, select one of the following elements:
    • One or multiple messages
    • An activation
    • A guard
    • An interaction use
  2. From the Sequence Diagram section of the action bar, click Create New Guard .

    Tip: This command is also available from the context menu.

Create a New Guard using the Tools Palette

You can create a guard for a selected actor in an active sequence diagram view.

  1. From the Sequence Diagram section of the action bar, click Create New Guard .
    The Tools Palette dialog box appears.
  2. From the active sequence diagram view, select at least one message link.
    The name of the selected message link is displayed in the Tools Palette dialog box.
  3. Click Finish.

Create a New Block

You can insert a block in a guard composed of several existing blocks.

Before you begin:
  • Create a message.
  • Insert a message in a guard.
  1. From the active sequence diagram view, select a guard.
    A + sign is displayed in the bottom left corner of the selected guard.
  2. Click the + sign.