Book a Demo

Author Topic: Batch relation?  (Read 4883 times)

nowayEA

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Batch relation?
« on: February 28, 2013, 05:58:46 am »
I have 100's of requirement elements in a diagram that need to be related to a use case element. Is there a method to relate them all at one as opposed to one-by-one?

g.makulik

  • EA User
  • **
  • Posts: 355
  • Karma: +0/-0
    • View Profile
Re: Batch relation?
« Reply #1 on: February 28, 2013, 06:05:18 am »
May be creating the neccesary connector objects can be done with a reasonable SQL Insert statement on the database directly, depends on how the criteria for connecting them can be narrowed to the conditions/constraints (same applies for scripting).

HTH
Günther
Using EA9.3, UML2.3, C++, linux, my brain, http://makulik.github.com/sttcl/

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Batch relation?
« Reply #2 on: February 28, 2013, 08:11:16 am »
You can also do that via the Relationship Matrix. Place the requirements in one package (to be source) and the element in a 2nd (to be target). Now select them in the RM. Click the target column with the element. From the context menu select Create new relationship. Done.

q.

jfzouain

  • EA User
  • **
  • Posts: 152
  • Karma: +6/-1
    • View Profile
Re: Batch relation?
« Reply #3 on: February 28, 2013, 08:39:23 am »
The most simple way is to tag them all with the shift key and then drag them all to the Use case.
Best regards

Jose Zouain

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Batch relation?
« Reply #4 on: February 28, 2013, 12:10:21 pm »
Quote
The most simple way is to tag them all with the shift key and then drag them all to the Use case.
How would that create a relation?

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Batch relation?
« Reply #5 on: February 28, 2013, 01:09:57 pm »
Quote
Quote
The most simple way is to tag them all with the shift key and then drag them all to the Use case.
How would that create a relation?

q.
When you drop a Requirement onto a UseCase, EA automatically creates a Realization between them. However, it doesn't appear to work for multiple Requirements, so your recommendation using the Relationship Matrix is the OP's best bet.
The Sparx Team
[email protected]

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Batch relation?
« Reply #6 on: February 28, 2013, 06:27:38 pm »
Quote
Quote
When you drop a Requirement onto a UseCase, EA automatically creates a Realization between them. However, it doesn't appear to work for multiple Requirements, so your recommendation using the Relationship Matrix is the OP's best bet.
Just tried that, but it had no effect at all (except moving the requirement behind the use case). Using 1006.

q.

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Batch relation?
« Reply #7 on: March 01, 2013, 09:15:25 am »
Firstly, you drag an existing Requirement from the Project Browser onto the Use Case. That creates the Realize relationship (see the Links page of the Use Case Properties dialog) but doesn't add the Requirement element to the diagram. That might be a good thing from nowayEA's perspective.

You can add any or all of the Requirements (and the Realize relationships) to the diagram by right-clicking on the Use Case and selecting the Insert Related Elements option. On the dialog, define any filters and then select the checkbox against each Requirement you want to show on the diagram (or click on the All button).

Be aware that this process defaults to automatically laying out the diagram after adding the requirements. You can deselect the option on the dialog.
Best Regards, Roy

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Batch relation?
« Reply #8 on: March 01, 2013, 08:20:47 pm »
Quote
Firstly, you drag an existing Requirement from the Project Browser onto the Use Case.
A bit later I realized that likely I wasn't right in the way doing it but I did not try the way you tell. However, I'll keep that in mind. Thanks for clarification.

q.

nowayEA

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Batch relation?
« Reply #9 on: March 12, 2013, 08:17:38 am »
Relationship matrix! Perfect!
Thanks guys! That saved me a lot of time.