Book a Demo

Author Topic: Stereotyped relationship doesn't work across profiles  (Read 3904 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Stereotyped relationship doesn't work across profiles
« on: April 03, 2020, 12:02:17 am »
I've got a profile A with a stereotype aaa, and a profile B with a stereotype bbb.
Profile A also contains a stereotyped dependency ddd.

I want to specify a stereotyped relationship for ddd from aaa to bbb. I drop bbb into profile A's diagram, draw the stereotyped relationship connector from aaa to bbb and specify ddd in the connector's stereotype tag. This doesn't work.

After saving the package as a profile, the profile contains
<UMLProfile profiletype="uml2">
    <Documentation id="bla" name="A" version="0.1" notes="This functionality hasn't been tested but let's dump it out there anyway"/>
    <Content><Stereotypes>
        <Stereotype name="aaa" ....>
            <stereotypedrelationships>
                <stereotypedrelationship stereotype="A::ddd" constraint="A::bbb"/>
       <-- This should be "B::bbb"
            </stereotypedrelationships>
        </Stereotype>
    </Stereotypes></Content>
</UMLProfile>


So how do I specify a stereotyped connector between two element stereotypes which are in different profiles?
My theories are always correct, just apply them to the right reality.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Stereotyped relationship doesn't work across profiles
« Reply #1 on: April 03, 2020, 12:17:38 am »
You have to create a new stereotype with the fully qualified name of "B::bbb"

This works exactly the same way as if you would be using existing stereotypes from ArchiMate or BPMN

Geert

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Stereotyped relationship doesn't work across profiles
« Reply #2 on: April 03, 2020, 12:30:14 am »
Alright, thanks.

Not a word on the metamodel constraints page to point in this direction. Funny that.
My theories are always correct, just apply them to the right reality.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Stereotyped relationship doesn't work across profiles
« Reply #3 on: April 03, 2020, 07:41:24 am »
Alright, thanks.

Not a word on the metamodel constraints page to point in this direction. Funny that.
Quote
The value of the tag 'stereotype' on the «stereotypedrelationship» connector can be either a simple or a fully qualified connector stereotype

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Stereotyped relationship doesn't work across profiles
« Reply #4 on: April 03, 2020, 06:31:09 pm »
Not a word on the metamodel constraints page to point in this direction. Funny that.
Quote
The value of the tag 'stereotype' on the «stereotypedrelationship» connector can be either a simple or a fully qualified connector stereotype
Which describes how to reference the connector stereotype if that's in a different profile.

This is the target element stereotype. If you drop that actual stereotype element from its profile package into your diagram and draw the connector to that, it doesn't work. You have to create a fake stereotype element in the profile where you're defining the relationship, and then manually maintain that if the original stereotype ever changes. No help from the tool, and I repeat: nothing in the documentation to tell you that's what you need to do.
My theories are always correct, just apply them to the right reality.