Creating an Interaction
An interaction is used to model how participating communication partners exchange information within a system, by representing the communication partners, the orders and the chronological and logical sequences of messages and the loops and concurrence of message flows. A sequence diagram describes precisely one non-trivial activity of a Behaviored Classifier.
Prerequisites
In order to be able to create a sequence diagram, you need to specify the Behaviored Classifier which the information exchange is to be described for. Classes and components are behavior-specific classifiers.
Context
You can make the decision as to which behavior is to be described with the sequence diagram in various ways:
-
Select a behaviored classifier and create an interaction for it.
-
Create an interaction from the ribbon without selecting, then make the selection in the following dialog. You can select an existing behavior-specific classifier from the dialog or create a new one.
How to proceed
-
To describe the communication of an existing behaviored classifier as an interaction, select the class or component and select
Start>New>New Diagram>Interaction.
The sequence diagram is created and assigned to the behaviored classifier in the model structure as standard. The interaction's owner is shown in the Details tool window.
-
To describe the communication of an existing BehavioredClassifier – or one that is to be created – as an interaction, select
Start>New>New Diagram>Interaction.
A selection dialog appears, prompting you to select a suitable behaviored classifier. Select an existing classifier or use the Create New Element button to create a behaviored classifier that does not exist yet. A wizard then takes you through the steps necessary for this.
The sequence diagram is created and assigned to the behaviored classifier in the model structure as standard. The interaction's owner is shown in the Details tool window.
You can now use this diagram for creating communication partners as lifelines and displaying communication between these partners.