Book a Demo

Author Topic: v15.2β - Redefining EAUML::table and relationship definition  (Read 12896 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
In our MDG, we have a redefinition of EAUML::table
Code: [Select]
<Stereotype name="DBTbl" metatype="DB Table (OurMDG)" notes="" cx="151" cy="80" bgcolor="15658671" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0" generalizes="EAUML::Table" baseStereotypes="EAUML::Table ClssVrtx AggrgtVrtx" redefines="EAUML::Table">
(ClssVrtx & AggrgtVrtx are our own stereotypes)
We create an Association using the Database Modelling profile between two DBTbl items.  When we try to activate the Foreign Keys... dialog, we get the message that "Both source and target elements must be Tables"

What are we doing wrong?

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

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: v15.2β - Redefining EAUML::table and relationship definition
« Reply #1 on: June 16, 2020, 11:05:05 am »
What are we doing wrong?

In our MDG, we have a redefinition of EAUML::table
There's the problem. It won't work if you redefine extend it.
« Last Edit: June 16, 2020, 11:06:57 am by Eve »

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: v15.2β - Redefining EAUML::table and relationship definition
« Reply #2 on: June 16, 2020, 11:43:25 am »
What are we doing wrong?

In our MDG, we have a redefinition of EAUML::table
There's the problem. It won't work if you redefine extend it.
So you're saying we can't have our own version of EAUML::table?

Otherwise, I'm confused.

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

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: v15.2β - Redefining EAUML::table and relationship definition
« Reply #3 on: June 16, 2020, 04:35:22 pm »
I tried
Code: [Select]
<Tag name="EAUML::Trace(UML::Abstraction)" type="" description="" unit="" values="" default="Trace"/>which I took from EA's stomach but it did not work. Instead I had to use UML::TraceLink. I guess that EAUML is an off limits MDG.

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: v15.2β - Redefining EAUML::table and relationship definition
« Reply #4 on: June 17, 2020, 11:02:33 am »
Yes, that's what I'm saying.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: v15.2β - Redefining EAUML::table and relationship definition
« Reply #5 on: June 18, 2020, 09:04:17 am »
Yes, that's what I'm saying.
To be clear...  We cannot create our own derivations for EAUML::table (for example to have a shapescript react to additional properties etc.).

Which begs the question:  "Why?"

What happened to:
"Redefine Stereotypes in Another Profile
If you want to redefine a stereotype in another profile, adding new tags and removing or modifying existing tags, while the stereotype behaves in all other ways as if it is the original stereotype, you can use a redefines Generalization as described here."?

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

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: v15.2β - Redefining EAUML::table and relationship definition
« Reply #6 on: June 18, 2020, 10:09:00 am »
Because an implementation decision was made that means nearly all datamodeling behavior checks explicitly for the exact stereotype.

Any specialization for any reason WILL prevent it from working. If you implement it as a secondary stereotype it will still work. I know you don't want to do that, but if you want a shape script or extra properties that's what you will need to do in this case.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: v15.2β - Redefining EAUML::table and relationship definition
« Reply #7 on: June 18, 2020, 11:11:36 am »
Because an implementation decision was made that means nearly all datamodeling behavior checks explicitly for the exact stereotype.

Any specialization for any reason WILL prevent it from working. If you implement it as a secondary stereotype it will still work. I know you don't want to do that, but if you want a shape script or extra properties that's what you will need to do in this case.
Thanks,
At least we now understand why.  I was already considering a secondary stereotype.

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