Interaction partners are modeled using lifelines, which display messages that have been sent and received in chronological order.
Prerequisites
In order to be able to create a sequence diagram, you need to specify the Behaviored Classifier for which the communication is to be described. Behaviored classifiers include class, component and use case, among others.
Context
In order to usefully define the participants in an interaction, it must be possible to structure the Behaviored Classifier to which the interaction belongs using Connectable Elements. As actors and use cases are counted as Behaviored Classifiers but cannot be structured, in interactions with both these element types it is only possible to create lifelines that represent the actor or use case as a whole.
Communication partners involved in an interaction are represented in UML sequence diagrams by lifelines, which display messages that have been sent and received in chronological order.
How to proceed
Place the mouse pointer at the chosen position in the interaction frame and select the
Lifeline template from the mini toolbar in the context menu.
The Requirement dialog is opened and is initially empty as no interaction partner has been selected.
Click on Add....
The Add Requirement dialog opens; this includes the Behaviored Classifier for the interaction and its Connectable Elements, as already defined in your model.
Confirm your selection with OK.
The selected elements are inserted into the sequence diagram as lifelines next to each other and either labeled with the type of the selected connectable element or with the key word "self". In the latter case, the lifeline represents the behaviored classifier of the interaction as a whole. The properties of a lifeline can be modified directly in the Properties
tool window.
© 1986-2014 MID GmbH Nuremberg Germany. DIN EN 9001 certified. All rights reserved.