Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: Raphael Parree 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
-
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.
-
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
-
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.