In sequence diagrams, you can add create,
destroy, synchronous and asynchronous messages to lifelines to represent
communication between objects. In
capsule-based modeling, you can also associate events with and assign
ports and protocols to messages.
About this task
To create a message:
Procedure
- In the Palette,
click a message type.
- In the diagram editor, in an interaction frame,
click a source lifeline and drag the cursor to a target lifeline.
- In the dialog box that opens after you create a message,
specify the sending and receiving ports:
- To create an unspecified port, click Unspecified,
and type a name for the message.
- To specify existing ports, click Browse and
select a port.
- To create a new port, click Add Port or Add
Matching Port and type a name for the port.
To create a new protocol, in the Add Port dialog
box, select Create New Protocol check box.
You can also click Browse to select a protocol
for the port. When you created an unspecified port, you
can not create an event or protocol until the port is specified.
- Click OK.
- Specifying an event:
- From the Events pane, select an event.
- To specify an existing event, in the Events pane, select one.
- To create an event, click Add Event and
type a name for the event.
To set the dataclass, click Set.