Book a Demo

Author Topic: How to reuse elements in different diagrams in the project?(model of a program)  (Read 4041 times)

Kulagin

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
After making few diagrams(by just dropping elements from a toolbox on diagrams and making a lot of copies of the same thing in different diagrams) I realized that what I see inside diagrams and elements on the left side in the project tree aren't the same thing and I can reuse elements I see on the left side in different diagrams with Links, instances and child:


As I understand, by default when you drop an element from a toolbox on a diagram, it creates new element based on a template, puts it in a project tree and then inserts a link to that element into the diagram, right?

With the "default" approach I create a lot of copies of the same thing and I can't even refactor it, like if I have a class in many diagrams, I can't just change it in once place, so it would change in all places, I'd have to go and change it in every diagram.

So I'm trying to understand how to organize a project to be able to reuse elements. Here's what I came up so far:


Basically, I just organize stuff by what type it is. User is an actor, so it goes into actors package, actor is an element, so it goes into elements package, same with other objects in the project. Is it any good? Can you suggest something? Is there an article about how to properly organize elements in the project browser?

How do people who actually model software systems organize their models of solutions in EA? Are there any examples(projects, so I can open it in EA), so I can follow good practices?
« Last Edit: June 18, 2019, 12:47:28 am by Kulagin »

Mauricio Moya (Arquesoft)

  • EA User
  • **
  • Posts: 344
  • Karma: +8/-4
  • EA Consulting and development in Spanish
    • View Profile
    • Arquehub Azure Module
You just can avoid the "Elements" package and the "Diagrams" package because in EA you only can have elements, diagrams and packages, so your upper packages will be always Elements and Diagrams.

You can start from the UML basic "templates" in the model wizard, and fell free to create diagrams in whatever package you need (for example a diagram in the use case package).

Also you can check the Example model for ideas.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Best to avoid the diagrams/elements approach.
You'll probably find that there is a logical location for each diagram within the project browser tree.

We usually first organize based on abstraction level and then divide up by domain.
A bit like this: https://imgur.com/lLjcz1b

https://imgur.com/lLjcz1b

Geert