Book a Demo

Author Topic: Reusing (external) constraints  (Read 2641 times)

Rouven

  • EA User
  • **
  • Posts: 48
  • Karma: +0/-0
    • View Profile
Reusing (external) constraints
« on: July 17, 2012, 06:34:36 pm »
Hi everyone,

I'm just starting to add constraints to my UML class model. One of the issues I'm encountering is that I have certain - more or less complex - constraints that apply to various classes throughout the model.

As an example: I have several classes that have attributes start and end. For all of these classes I wish to specify a constraint start <= end.

What I've seen so far is that the attribute/class constraints are directly bound to the model element, so that will not work. But the external constraints are actual model elements, they even appear in the t_object table, leading me to suspect I could add them to multiple diagrams and link them to multiple objects then. However, since they are not displayed in the project browser there is no way to refer to them.

Is this simply a user interface problem in EA, or does it have a deeper meaning?

Do you have other recommendations?

Thanks & regards,
Rouven

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Reusing (external) constraints
« Reply #1 on: July 17, 2012, 08:42:05 pm »
Maybe you should as a feature request to make these few invisible elements appear in the project browser. Right now the exist only as long as they are in a diagram.

So to overcome your situation: you could place these constraints in a dedicated diagram and copy/paste from there. This diagram would be sort of project browser extension.

q.