Book a Demo

Author Topic: Direction of connector in UML-profile  (Read 14333 times)

ch

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Direction of connector in UML-profile
« on: September 04, 2009, 06:27:40 pm »
Hi,
I tried to predefine the direction of a connector in an UML-profile. I defined a metaclass "Association". There is an attribute "direction" which is set to "Source -> Destination".
But if I use the defined stereotype the direction is "undefined". Why?


Oliver F.

  • EA User
  • **
  • Posts: 573
  • Karma: +2/-1
  • Aren´t we all in the model business ?
    • View Profile
    • Karl Storz homepage
Re: Direction of connector in UML-profile
« Reply #1 on: September 07, 2009, 04:48:05 pm »
You will have to define predefined link directions with the QuickLinker feature. Look in the online help how to accomplish this.
Direction attributes fir releations can not be defined in the UML profile metaclass iirc.

Oliver

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Direction of connector in UML-profile
« Reply #2 on: September 07, 2009, 04:53:53 pm »
It should work as you have described. What version of EA are you using?

[edit]Just a thought: are you dropping your stereotype from the Toolbox or using the Stereotype field on an existing association's properties dialog? The setting only takes effect when you create the stereotyped association from new, i.e. drop it from the Toolbox.[/edit]
« Last Edit: September 07, 2009, 04:56:54 pm by KP »
The Sparx Team
[email protected]

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Direction of connector in UML-profile
« Reply #3 on: September 07, 2009, 05:30:28 pm »
OK, Neil, I'll bite...  ;)

Why doesn't it work consistently?  That is, not just on New?

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

Oliver F.

  • EA User
  • **
  • Posts: 573
  • Karma: +2/-1
  • Aren´t we all in the model business ?
    • View Profile
    • Karl Storz homepage
Re: Direction of connector in UML-profile
« Reply #4 on: September 07, 2009, 05:31:38 pm »
Quote
[edit]Just a thought: are you dropping your stereotype from the Toolbox or using the Stereotype field on an existing association's properties dialog? The setting only takes effect when you create the stereotyped association from new, i.e. drop it from the Toolbox.[/edit]

Ah, I stand partially corrected :)
I never drop associations from the toolbox on links or create links from it.
This is where the quicklinker drops in and I believe it overwrites the settings from the metaclass.

So if you want directed links between certain elements the quicklinker might be worth a look.

Oliver

ch

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Direction of connector in UML-profile
« Reply #5 on: September 07, 2009, 06:52:15 pm »
Quote
It should work as you have described. What version of EA are you using?

[edit]Just a thought: are you dropping your stereotype from the Toolbox or using the Stereotype field on an existing association's properties dialog? The setting only takes effect when you create the stereotyped association from new, i.e. drop it from the Toolbox.[/edit]

I'm using version 7.0.818 and dropped the stereotype from the toolbox.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Direction of connector in UML-profile
« Reply #6 on: September 08, 2009, 08:55:03 am »
Quote
I'm using version 7.0.818 and dropped the stereotype from the toolbox.
It has certainly been fixed since build 818.
The Sparx Team
[email protected]

ch

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Direction of connector in UML-profile
« Reply #7 on: September 08, 2009, 06:10:44 pm »
I tested the same profile with generalizations instead of using associations and it works. I don't see a mistake when I'm using associations again, but it doesn't work.

I decided to use the QuickLinker feature, which Oliver mentioned. In my opinion it is only a workaround. Anyway, it works.