Adding events to protocols in capsule-based UML models

You can add Incoming and Outgoing events to a protocol which can be received or sent by ports.

About this task

If you change the name of a protocol event, you also change the name of the underlying operation. Setting the data class of the event will allow messages to pass additional data between capsules as parameters. From the Properties view, you can navigate to the corresponding Data Class by clicking on the Open Type button.

To add an event to a protocol:

Procedure

  1. Right-click a protocol; then click Add UML, and click In Event or Out Event. The new event is displayed in the Properties view.
  2. Optional. In the Properties view, click In Events or Out Events, click the add Add event button from the Properties view, and type a name for the event in the table.
  3. To edit events:
    1. Open the In Events or Out Events tab in the Properties view for a protocol, and edit the event name and data classes directly in the table.
    2. Optional. Edit the event directly on a diagram or in the Project Explorer view.Editing an event on a diagram
    3. Optional. In the Properties view of the event, select the signal in the Project Explorer, or on a diagram.
    4. Optional. From the In Events or Out Events tab in the Properties view for the protocol, right-click on the event and select Show Dataclass in Project Explorer.
  4. To delete events:
    1. On the Events tab in the protocol Properties view, select the event, and press the delete Delete button button .
    2. On a diagram or in the Project Explorer view, select the event, right-click, and select Delete from Model.

Feedback