Book a Demo

Author Topic: Copy relationships  (Read 7128 times)

Michel777

  • EA User
  • **
  • Posts: 228
  • Karma: +0/-0
    • View Profile
Copy relationships
« on: November 02, 2013, 07:55:04 pm »
Hi,

there is a relationships  R1 (stereotype S1,)  between two elements UC1 (use case) and Application (class) C1. R1 has own tagged values.

UC1 - R1 - C1

We have also relationships with stereotype S2. S1 and S2 are the same.

Task: to  copy R1 as R2 (Stereotype S2): UC1 - R2 - C1 also for further 100 relationships (in bulk). Is there a simple way to do it ?

Thanks,

Michel

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Copy relationships
« Reply #1 on: November 03, 2013, 01:51:52 am »
You can do bulk assignment via the relationship matrix. Have you tried that?

q.

Michel777

  • EA User
  • **
  • Posts: 228
  • Karma: +0/-0
    • View Profile
Re: Copy relationships
« Reply #2 on: November 03, 2013, 06:21:10 am »
Hi,

yes I did.  I can create relationships  R2 on the cells with R1 (simply mark all such cells, Change Relationship R1 -> R2 for the matrix and then create the new one (R2) relationship. But I can not copy them. Remember, the relationships have tagged values...

Michel
« Last Edit: November 03, 2013, 07:10:23 am by michel777 »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Copy relationships
« Reply #3 on: November 03, 2013, 07:28:40 pm »
I see. I guess your only chance is to write a little script that does this copying. I thought of CSV ex-/import too, but that is intended for elements and not for relations.

q.
« Last Edit: November 03, 2013, 07:29:51 pm by qwerty »

Michel777

  • EA User
  • **
  • Posts: 228
  • Karma: +0/-0
    • View Profile
Re: Copy relationships
« Reply #4 on: November 04, 2013, 12:15:26 am »
Hi,

regarding our requirements on mananing relationships it seems to be a tough nut to crack. We need to be able to manipulate the relationships (update, insert) also outside of EA.

I was wondering, that there is no possibility to copy  a relationship - at least on a diagram.

Warm regards,

Michel

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Copy relationships
« Reply #5 on: November 04, 2013, 02:02:26 am »
No. You simply can't do that.

q.

Nizam

  • Prolab Moderator
  • EA User
  • *
  • Posts: 320
  • Karma: +15/-2
  • Model Sharing - Simplified
    • View Profile
    • Professional Model Collaboration
Re: Copy relationships
« Reply #6 on: November 05, 2013, 02:15:39 pm »
Michel
Have you considered using custom profile elements to create connectors (Stereotyped with tagged values) instead of copy paste.

Have supplied a sample profile for you, https://www.dropbox.com/s/t8blavxfb6uhuq4/SampleProfile.xml

Try importing this into UML Profiles in the Resources window (View -> Resources) and try creating relationships from it (S1 stereotyped associations)

HTH

Michel777

  • EA User
  • **
  • Posts: 228
  • Karma: +0/-0
    • View Profile
Re: Copy relationships
« Reply #7 on: November 05, 2013, 04:50:07 pm »
Hi HTH,

thanks a lot. Actually I'm already using my own stereotype for creating relationships. My Problem is, that I cannot copy existing relationships with their tagged values (with values).

Michel

Nizam

  • Prolab Moderator
  • EA User
  • *
  • Posts: 320
  • Karma: +15/-2
  • Model Sharing - Simplified
    • View Profile
    • Professional Model Collaboration
Re: Copy relationships
« Reply #8 on: November 05, 2013, 06:57:57 pm »
Michel
Got it. Sorry, I'm afraid that isn't possible off-the shelf, but can be done with scripting as qwerty mentioned.

SSIndia