Author Topic: Assigning an element to two packages?  (Read 2951 times)

Wai1982

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Assigning an element to two packages?
« on: July 31, 2014, 04:48:20 pm »
I have a list of Requirement elements that are relevant across two seperate Packages.

Is it possible to have it stored in both packages so that it is searchable in the package browser for each of them?

Or do I have to actually create two elements - one for each package?


Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Assigning an element to two packages?
« Reply #1 on: July 31, 2014, 05:02:48 pm »
Hi,

it's not possible to have the same thing in two packages.

Besides it makes no sense. It will only bring redundancy to your model which makes it difficult to maintain.

What you can do:
- Have diagram and draw a link of the requirement onto the diagram
- Make a dependency from requirement to package

Think of a package as of a cupboard. A cup can't be in both packages at the same time. You may insert a note to say that you'll find the cup in another cupboard.

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Assigning an element to two packages?
« Reply #2 on: August 01, 2014, 09:25:20 am »
I agree with Helmut. The relationship you are trying to model is that a Requirement "is relevant to" a Package. I don't think ownership is a good modelling construct to model that relationship. A dependency is better, maybe with a stereotype that has some meaning to you.
The Sparx Team
[email protected]

Wai1982

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Assigning an element to two packages?
« Reply #3 on: August 01, 2014, 09:59:05 am »
Quote
I agree with Helmut. The relationship you are trying to model is that a Requirement "is relevant to" a Package. I don't think ownership is a good modelling construct to model that relationship. A dependency is better, maybe with a stereotype that has some meaning to you.


Hi yes, i didn't think there would be a way - thought it was worth a try.

I'm using dependencies at the moment. All my requirements are linked to one or more "files" (a custom stereotype). But my problem is that each of these requirements have a whole set of tagged values and that a business requirement I have is to be able to look at a "file" and filter out only the requirements that have certain tagged values.

I can use the package browser to filter against the tagged values but I can't filter out the requirements that aren't in my file.

Conversely I can use a diagram and the traceability window to show only requirements that exist within a file but then I can't use the diagram filter to filter out tagged values...

It seems there's no easy way to search both on dependency and tagged values at the same time.  :-[

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Assigning an element to two packages?
« Reply #4 on: August 01, 2014, 03:56:59 pm »
You probably need to look at custom SQL queries then.
The Sparx Team
[email protected]