Sequence/Communication Diagram Transformations
It is possible to transform a Sequence diagram into a Communication diagram, and to transform a Communication diagram into a Sequence diagram. In each case, every element or message in the source diagram type is mapped 1:1 to a matching element or message in the target diagram.
Design > Tools > Transform > Transform Selection
Ctrl+Shift+H (transform current Package)
(transform selected elements)
Perform a Transformation
Lists and highlights all the elements from the diagram, which will be included in the transformation.
In either case, the 'Browse Project' dialog displays. Browse for and select the target Package into which the target diagram will be created, then click on the .
Click on this button to execute the transformation.
The target diagram is created and listed in the Browser window under the target Package with the name (depending on which transformation you have executed):
<source diagram name> Communication or
<source diagram name> Sequence
- The diagram being transformed must be open in the main diagram view for the 'Communication' or 'Sequence' options to appear in the Model Transformation dialog.
- Once you have selected the 'Communication' or 'Sequence' checkbox, these transforms ignore any other field setting in the dialog except for 'Target Package', and will perform a direct transformation of every element in the source diagram