Assigning operations to messages

In sequence diagrams, you can set a message signature by assigning an operation to it. When you create a message, the operation on the target participant is created automatically and you are prompted to name the newly created operation. You can replace an operation in a sequence diagram with another operation existing in the Model Explorer view.

To assign an operation to a message:
  1. Open a sequence diagram that contains at least two lifelines with messages.
    Note: The property of the target lifeline to which you add the operation must be a class, component, or interface type.
  2. In the Model Explorer view, create a class and an operation.
  3. Click and drag the class onto a lifeline in the interaction frame. The participant now represents that class.
  4. In the Model Explorer view, click and drag an operation onto the message in the interaction frame. The operation must belong to the class that is assigned to the target participant.

Parent topic: Creating messages in sequence diagrams

Related concepts
Messages

Terms of use | Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.