Author Topic: What causes relation between packages?  (Read 5168 times)

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
What causes relation between packages?
« on: March 20, 2016, 07:54:17 pm »
Hello,

Our model consists of several projects, where as a project is a branch.
Sometimes a project uses assets of another branch. In case of a problem we should reverse the project to a previous version along with its related packages.

 I therefore would like to develop an add-in that recognizes relation among the projects, and here is my questions:
What are the parameters that EA rely on in order to recognize relations among packages?

According to Geert's great article (http://bellekens.com/2015/10/16/searching-for-real-orphans-in-enterprise-architect/) I found the following: 
 
1. In case there is an object on my project, that its classifier is from another project, there is a relation between the package.
2. In case a diagram in my project contains an element from another package.
3. In case there is a relation between element in my project (as source) and an element from another package.
4. In case an attribute in my project is of type that defined in another package.
5. In case a returned type of an operation in my project is a type that defined in another package.
6. In case a parameter to an operation in my project is of type that defined in another package.

Do I cover all of the relation scenarios? any other ideas?
Thanks in advance!

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13274
  • Karma: +556/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: What causes relation between packages?
« Reply #1 on: March 20, 2016, 10:14:42 pm »
Some things you might have forgotten:

- Relations between packages
- hyperlinks to elements or diagrams

Geert

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
Re: What causes relation between packages?
« Reply #2 on: March 20, 2016, 10:22:01 pm »
Some things you might have forgotten:

- Relations between packages
- hyperlinks to elements or diagrams

Geert

Thanks.
What do you mean by "Relations between packages"?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13274
  • Karma: +556/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: What causes relation between packages?
« Reply #3 on: March 21, 2016, 02:17:51 am »
A relation where one or two of the sides is a Package

Geert

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: What causes relation between packages?
« Reply #4 on: March 21, 2016, 04:39:53 pm »
Hi,

I would additional check the t_xref table. There are properties and more relations inside which you might forget.

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

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13274
  • Karma: +556/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: What causes relation between packages?
« Reply #5 on: March 21, 2016, 06:02:36 pm »
Ah, yes indeed.

And don't forget possible RefGUID tagged values.

A RefGUID tagged value can reference an element, package, diagram, operation or attribute using the GUID of that item.

Geert