Book a Demo

Author Topic: Replicate parts of an activity diagram  (Read 3688 times)

j-jones

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Replicate parts of an activity diagram
« on: April 28, 2009, 03:16:01 am »
Situation: I have created a complex activity diagram which shows relations to certain situations. These individual situations are also related with each other.

Now I would like to create an new activity diagram that only shows one part of one such a situation, i.e. the relationship with actor1 in activity1, actor2 with activity2, etc.

How can I create this, without creating each situation from scratch?

Thx 4 ur help.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Replicate parts of an activity diagram
« Reply #1 on: April 28, 2009, 04:13:53 pm »
Select objects, copy and paste in new diagram?

j-jones

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Replicate parts of an activity diagram
« Reply #2 on: April 29, 2009, 09:22:23 pm »
Sure, but if i change something on the complex Diagram, then nothing happens on the new one.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Replicate parts of an activity diagram
« Reply #3 on: April 29, 2009, 10:15:36 pm »
Check out shallow and deep copy in the EA help. Use the index to find Copy | Diagram, Deep and Copy | Diagram, Shallow.

In both cases you create a new diagram. A shallow copy populates the new diagram with instances of the (original) selected elements. In the latter case the diagram is populated with new elements, copied from the ones on the original diagram.

Perhaps you are creating a deep copy. In that case your changes to the original diagram would not be reflected, since the new diagram contains different elements (although they did have the same attribute values when they were created). Once you change either the original element or the copy on the new diagram the two are different.

If you create a shallow copy then both the new and original diagrams show the same (i.e. identical) element; they are simply different views. If you change the element from either diagram the changes should be reflected in the other diagram (and anywhere else in your model where the element is shown).

David
No, you can't have it!

j-jones

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Replicate parts of an activity diagram
« Reply #4 on: April 29, 2009, 11:30:12 pm »
Thx midnight. Sometimes a look in the help it is helpful ::)

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Replicate parts of an activity diagram
« Reply #5 on: April 30, 2009, 09:34:13 pm »
No problem J,

The trick is knowing where to look, and it is a big document. This particular part goes back a while, and the documentation was somewhat smaller then.
No, you can't have it!