Wiki
This website is a wiki. If you like and use our processes, techniques and tools, please add your experience and best practices. Just register and share.


Contents


User


Smart


Community

















Tips for using Enterprise Architect

Enterprise Architect is an UML tool for software development and modelling from Sparx Systems

Using The Compare Utility (Diff)

Enterprise Architect (Corporate and Professional Editions) has a comprehensive and powerful differencing utility built in. Possibly at the end of each iteration or probably more often when you are using a source control make a baseline. So each time you easily can find the difference between 2 version with the use of the built in compare utility

When you are not using the baselines or sourcecontrol options in Enterprise Architect try to export the whole model as XMI regularly. You can use these exports to compare.

Robert de Wolff


Exporting Tagged Values from profiles

The XMI Export from Enterprise Architect when using profiles is strange. Extra information from this profiles - tagged values - aren't part of the classifier xml element in the xmi but are placed at the end of the xmi file. They are linked to the classifier by id. Thus Tobago MDA can not apply these tagged values in code generation. A workaround is using a transformation style sheet to update the xmi.


Downloads


Add this style sheet to the resources of your EA project when exporting, as displayed below.
Resources

Resources


Use this stylesheet when exporting to xmi, as displayed here.
Export To XMI

Export To XMI


Smart use case script

You can use the tagged values to specify the complexity of use cases.

Tagged values

It would be nice to see these values in your use case diagram. To make them visible you can use following script in EA. It will also adapt the colors to the specified stereotype.

Example:
Screenshot

In EA you can use shape scripts to change the shape of elements. You can apply these scripts to stereotypes. So to show the smart complexity in the use case element you have to apply the script to all stereotypes you use.

You can do this as following:

Select: Settings => UML => Stereotypes
UML stereotypes

Now select Override Appearance with Shape Script and press Edit. Paste the script provided below.


Downloads



Resources

Resource directory at Sparx Systems
Including UML tutorials, UML profiles, UML patterns, Enterprise Architect tutorials and more.