Book a Demo

Author Topic: displaying attribute tags & constraints  (Read 11749 times)

steve.capell

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
displaying attribute tags & constraints
« on: July 25, 2005, 05:06:01 am »
Does anyone know how to get a class diagram to show tagged values and constrainsts at attribute level?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: displaying attribute tags & constraints
« Reply #1 on: March 25, 2016, 12:06:38 am »
Time to revive this one.
I would very much like to do now.

Anyone?

Geert

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: displaying attribute tags & constraints
« Reply #2 on: March 29, 2016, 05:55:41 pm »
I guess I'll need to send in a feature request.

The problem I'm facing (and I'm sure I'm not alone) is that certain users want to see certain characteristics of attributes on a diagram.
In this instance they want to know which attribute are part of the "core" data of an element.
So in the meta model we added a property to our attribute stereotype that indicates being "core". Unfortunately there is no visual indication on a diagram which attributes are "core" data and which are not.

As a result of this limitation we see our users pushing for all kinds of dirty workaround:
- Why can't we use a steretoype "core"?
- Why can't we use the isID field?
- Why can't we sue the Collection type field?

All hideous workarounds that pollute our clean model, just because these other things happens to be visible on a diagram.

I though about writing a shapescript, but that seems an awful lot of work to reproduce the whole class shape just because of some indicators we need.

Geert

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: displaying attribute tags & constraints
« Reply #3 on: March 30, 2016, 08:17:28 am »
I think the danger is you start to overload things.  How many of these concerns are adequately addressed with the use of notes on the diagram?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: displaying attribute tags & constraints
« Reply #4 on: March 30, 2016, 08:52:07 am »
Shape scripts don't have the capability of customizing the attribute text, so that's not an option.

I would extend your existing stereotype with a core stereotype instead of adding a new tagged value to your stereotype.

It sounds like these "core" attributes are a different type of attribute, so it would match the intention of stereotyping. In addition, in my opinion that's much cleaner than having every other attribute having a tag saying that "core" is false.


Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: displaying attribute tags & constraints
« Reply #5 on: March 30, 2016, 11:06:38 am »
Hi Geert,

Do you have a formal definition of what "core" means?

That should lead you to the type of workaround may be best.

Notwithstanding that, it's time that element features (including attributes) stopped being lower class (pun intended) citizens of the model - and allow us to modify the graphical aspects of the feature on the diagram.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: displaying attribute tags & constraints
« Reply #6 on: March 30, 2016, 01:29:40 pm »
"Core" (as far as I understood it) means that this is part of the minimum set of data to be communicated in messages.
Bu they have others like this too like an "authentic indicator". An NO these are not stereotypes, but properties of stereotypes.

We are only prone to solve it with multiple stereotypes because these are visualized on a diagram, not because its the right thing to do.
It feels like multiple stereotypes are somewhat similar to multiple inheritance. Using multiple inheritance has proven to be only for the happy few with an IQ of 130+. Everyone else just gets fricking confused ???

So please, give me a way to somehow visualize some tagged values on the diagrams.

Thanks

Geert

Geert

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: displaying attribute tags & constraints
« Reply #7 on: March 30, 2016, 01:47:16 pm »
So please, give me a way to somehow visualize some tagged values on the diagrams.

Well
  • Notes
  • text elements
  • Note linked to Tagged value

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: displaying attribute tags & constraints
« Reply #8 on: March 30, 2016, 01:57:59 pm »
So please, give me a way to somehow visualize some tagged values on the diagrams.

Well
  • Notes
  • text elements
  • Note linked to Tagged value
The idea is that I only need to change the tagged value of the attributes, and that this becomes apparent in all diagrams where this attribute is used. (similar to things like "isID" or using multiple stereotypes, which are the things that are now often abused because of this)

I'm afraid none of the options above give me that.

Geert

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: displaying attribute tags & constraints
« Reply #9 on: March 30, 2016, 02:03:31 pm »
Could you potentially use primitives?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: displaying attribute tags & constraints
« Reply #10 on: March 30, 2016, 02:08:33 pm »
Could you potentially use primitives?

Can you explain what you mean by that?

Geert

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: displaying attribute tags & constraints
« Reply #11 on: March 30, 2016, 02:24:14 pm »
Could you potentially use primitives?

Can you explain what you mean by that?

Geert

Create a primitive and place it on the diagram and use it as the Datatype for your attribute.  Then you can display whatever feature of the attribute you like with existing functionality.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: displaying attribute tags & constraints
« Reply #12 on: March 30, 2016, 03:07:37 pm »
Could you potentially use primitives?

Can you explain what you mean by that?

Geert

Create a primitive and place it on the diagram and use it as the Datatype for your attribute.  Then you can display whatever feature of the attribute you like with existing functionality.
Nah, wouldn't work. The datatype is already used as well, but thanks for the suggestion.

Geert

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: displaying attribute tags & constraints
« Reply #13 on: March 30, 2016, 06:28:26 pm »
In a similar situation, I've "hijacked" Scope.  Not overloaded, hijacked.  Scope had no effective meaning in the context I was using for that type of feature - so I grabbed that.  That allowed me to suppress features on the diagram using Feature visibility.

HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: displaying attribute tags & constraints
« Reply #14 on: March 31, 2016, 01:46:19 am »
I see. In most situations I wouldn't worry about it too much and just hijack/abuse/overload any of the available properties to get the job done.

The problem with this client is that they are a government standards organisation. And it be can be hard to enforce standards when you are not following standards yourself  ;D

Geert