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:
- 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.
- In the Model Explorer view, create
a class and an operation.
- Click and drag the class onto a lifeline in the interaction
frame. The participant now represents that class.
- 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.