Author Topic: Schema composer, specify association to sub-class of an association end  (Read 2932 times)

joep

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
I am trying to create a message schema using schema composer. I would like make use of an inherrited association:

I have a root element called PSREvent which has an association to a class called PowerSystemResource. In my schema specification I would like to have an association between PSREvent and ACLineSegment, which is a specialization of PowerSystemResource.

How can I do this?


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13065
  • Karma: +544/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Schema composer, specify association to sub-class of an association end
« Reply #1 on: October 24, 2017, 08:11:18 pm »
Joep,

First drag the subclass into the left pane with the classes.
Then choose redefine on your association and select "as choice of" and check your subclass.

Geert

joep

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Schema composer, specify association to sub-class of an association end
« Reply #2 on: October 24, 2017, 09:03:23 pm »
Hi Geert,

I think i'm getting somewhere :)

I only see the option `restrict this property' when I right click on my association. This does have the option `as choice of'. Is that the one you mean?

I seem to only be able to point to direct child classes of PowerSystemResource, not to child classes of its child classes. How can I descent more than one inheritance level?

Thanks
Joep

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13065
  • Karma: +544/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Schema composer, specify association to sub-class of an association end
« Reply #3 on: October 24, 2017, 09:30:40 pm »
I only see the option `restrict this property' when I right click on my association. This does have the option `as choice of'. Is that the one you mean?
Yes
I seem to only be able to point to direct child classes of PowerSystemResource, not to child classes of its child classes. How can I descent more than one inheritance level?
You can't. Please send in a bug report. We've already done so, but the more bug reports they get, the sooner it will get fixed.

Geert