Book a Demo

Author Topic: UML Profiles  (Read 6666 times)

caitken

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
UML Profiles
« on: December 19, 2012, 04:56:40 pm »
I'm developing an MDG Technology and want to be able to limit the relationships allowed between elements of the profile to only those defined with the stereotypes in the profile. Any pointers on how to achieve this would be appreciated.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: UML Profiles
« Reply #1 on: December 19, 2012, 08:14:52 pm »
You can not really limit them. The quick linker just presents the useful subset of connectors. But via the standard toolboxes one can create any UML-valid connector. If you really want to do a check you need to intercept the creation via the OnPreNewConnector event.

q.

caitken

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: UML Profiles
« Reply #2 on: December 20, 2012, 08:43:48 am »
Thanks. I noticed that the BPMN MDG Technology doesn't allow flows to cross pools - does it use the same call to police this rule? or a different approach?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: UML Profiles
« Reply #3 on: December 20, 2012, 09:11:23 am »
Haven't developed that, you need to ask Sparx...

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: UML Profiles
« Reply #4 on: December 20, 2012, 09:22:30 am »
I'm afraid it's done in EA, not the technology
The Sparx Team
[email protected]

caitken

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: UML Profiles
« Reply #5 on: December 20, 2012, 10:17:53 am »
Is there no way that I could implement something similar using Constraints in EA? i.e., a constraint on the stereotype that checks the type of the source and destination?

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: UML Profiles
« Reply #6 on: December 20, 2012, 10:41:13 am »
Unfortunately not.

qwerty gave you the answer that you need to write an add-in that implements the EA_OnPreNewConnector broadcast event.
The Sparx Team
[email protected]

caitken

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: UML Profiles
« Reply #7 on: December 20, 2012, 11:01:02 am »
Are there any plans to add relational integrity checking to the core product?

caitken

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: UML Profiles
« Reply #8 on: December 20, 2012, 04:54:40 pm »
I'll take that as a - no.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: UML Profiles
« Reply #9 on: December 20, 2012, 04:59:29 pm »
Quote
I'll take that as a - no.
Or you could take it as an "I don't make those decisions". It's certainly a feature I would like to see in EA.

:)
The Sparx Team
[email protected]