Book a Demo

Author Topic: stereotypedrelationship not created  (Read 5976 times)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
stereotypedrelationship not created
« on: June 04, 2021, 11:34:34 pm »
I have added a «stereotypedrelationship» from Package to Class using one of my stereotypes. The context menu shows the entry also according to the Meaning properties. So definitely it knows about it. But when I let go after the drag NO connector is created. Creating the connector from the toolbox works without issue. What could be the issue here? EA of course lets me stand clueless.

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: stereotypedrelationship not created
« Reply #1 on: June 07, 2021, 09:35:26 am »
From the information you've provided I don't think I could make a useful guess.

What is the stereotype extending? Is it a specialization? Can you share the relevant portions of your profile?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: stereotypedrelationship not created
« Reply #2 on: June 07, 2021, 08:27:45 pm »
Here's what I got:
Code: [Select]
<Stereotype name="allocate" metatype="Allocate" notes="" cx="0" cy="0" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0">
<AppliesTo>
<Apply type="ActivityPartition">
<Property name="isDimension" value="false"/>
<Property name="isExternal" value="false"/>
</Apply>
<Apply type="Dependency">
<Property name="direction" value="Source -&gt; Destination"/>
</Apply>
</AppliesTo>
</Stereotype>
from my profile. And later
Code: [Select]
<Metamodel>
<Metaclass name="Package" notes="">
<metarelationships>
<metarelationship metaclass="Abstraction" constraint="Package"/>
<metarelationship metaclass="Dependency" constraint="Package"/>
<metarelationship metaclass="Nesting" constraint="Package"/>
<metarelationship metaclass="NoteLink" constraint="Note"/>
</metarelationships>
<stereotypedrelationships>
<stereotypedrelationship stereotype="UML::tracelink" constraint="Class"/>
<stereotypedrelationship stereotype="myProf::allocate" constraint="Class"/>
</stereotypedrelationships>
</Metaclass>
</Metamodel>
The Allocate shows up in the context but it does not create a connector.

q.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: stereotypedrelationship not created
« Reply #3 on: June 07, 2021, 08:59:11 pm »
q,

FWIW, I believe there is a defect in using Multiple Extensions for concrete metatypes (i.e. those metatypes for which you wish to create toolbox entries).

I just checked our MDG and the only place we use multiple extensions (and therefore generate multiple <AppliesTo> elements) is for "decorative" stereotypes which are used to inherit decorations.  These decorative are NOT directly created into the model.

This may be an example of it not working.

HTH,
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: stereotypedrelationship not created
« Reply #4 on: June 07, 2021, 09:10:10 pm »
AH, thanks Paolo. As you know I have another thread on this multi-extension. That one is a left-over. Seems I have to brush up and get rid of all of them. Will test and see what happens.

q.

P.S. You hit the nail!