Author Topic: Copy diagram "shallow" method doesn't work for communication diagrams  (Read 2079 times)

Davide F

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Hi
I use EA 16.1.1622
When I copy a class diagram with the "shallow" method, the diagram is copied correctly without duplicating the elements of the diagram.
If instead I do the same with a UML communication diagram, the elements in the diagram are duplicated.
I've not tried with other diagram types.
This looks like a bug to me.
Thanks in advance for your help.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13240
  • Karma: +554/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Copy diagram "shallow" method doesn't work for communication diagrams
« Reply #1 on: March 03, 2023, 07:28:33 pm »
It's not a bug in the sense of "unintentional wrong behavior".

Messages in EA are tied to a diagram, so a message can only exist on one diagram, so therefore you are not allowed to reuse the objects used on communication diagram, or the lifelines for Sequence diagrams.

You probably could find a way around it, but it would only cause more problems.

Geert

Davide F

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Copy diagram "shallow" method doesn't work for communication diagrams
« Reply #2 on: March 03, 2023, 07:56:33 pm »
Hi Geert
I'm talking about something like this:
https://www.google.com/imgres?imgurl=https%3A%2F%2Fsparxsystems.com%2Fimages%2Fscreenshots%2Fuml2_tutorial%2Fcom02.GIF&imgrefurl=https%3A%2F%2Fsparxsystems.com%2Fresources%2Ftutorials%2Fuml2%2Fcommunication-diagram.html&tbnid=1FBAy_eJORxbDM&vet=12ahUKEwj9p9Ddr7_9AhUYybsIHargAsgQMygFegUIARDJAQ..i&docid=omiRpni5pOTukM&w=517&h=293&q=communication%20diagram%20enterprise%20architect&safe=active&ved=2ahUKEwj9p9Ddr7_9AhUYybsIHargAsgQMygFegUIARDJAQ

In the diagram there are controls, boundaries and entities. I don't expect that the messages between them are copied, but at least that controls boundaries and entities are not duplicated and that the associations between them are kept.

This kind of diagrams are useful when designing the system, and I can also define operations in the controls etc. so that I can reuse them in different diagrams. In this way I see these items as classifiers and not merely objects. The shallow copy would allow me to reuse them in different diagrams. If this is wrong, do you have other suggestions on how to do it?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13240
  • Karma: +554/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Copy diagram "shallow" method doesn't work for communication diagrams
« Reply #3 on: March 03, 2023, 08:43:00 pm »
You don't have to duplicate the classes, simply create (unique) instances of the classes to be used on the diagram.

There are no messages between classes in UML.

Geert