Book a Demo

Author Topic: External items  (Read 3232 times)

Raphael Parree

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
External items
« on: August 10, 2009, 06:53:07 pm »
Hi,

How would you link to an package/element in another project? Let's say I want to manage components on an enterprise level in separate EAP files, how would one project then reference this component and still be able to add for example operations to one of the interfaces?

Perhaps there is a completely different way of achieving this “Enterprise-view” feature?

Thanks,

Raphael


Luis J. Lobo

  • EA User
  • **
  • Posts: 252
  • Karma: +0/-0
  • IT Consultant
    • View Profile
Re: External items
« Reply #1 on: September 01, 2009, 08:19:11 pm »
From the EAP with the enterprise elements, select the desired package and make it a controlled package (right click, Package Control --> Configure"). This creates a XML file with the package contents.

In the EAP where you like to "use" the enterprise elements, right click and "Package Control --> Add package from file". This adds the controlled package from the previously generated XML.

If you add some methods to the elements, then do "Package Control --> Save Package to file" in order to update the XML with the new methods. Then, in the original EAP (enterprise) you can compare (Package Control --> Compare with XMI file", update (Package Control --> Load from XMI file)...

Find "Controlled packages" in the EA help for more information.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: External items
« Reply #2 on: September 01, 2009, 08:50:38 pm »
I you think about a setup like this you might want to consider setting up version control as well.
Makes managing all of this a bit more doable.

Geert

Luis J. Lobo

  • EA User
  • **
  • Posts: 252
  • Karma: +0/-0
  • IT Consultant
    • View Profile
Re: External items
« Reply #3 on: September 01, 2009, 09:20:38 pm »
I agree with Geert.

Using VC is the best way, but you have to consider to introduce a new tool (SourceSafe, Subversion, CVS...) and manage this. Check-out and Check-in are required to edit the package contents too.

The simple XMI controlled packages is the most simple way.