Book a Demo

Author Topic: Constraints for Profile  (Read 4239 times)

martin1

  • EA User
  • **
  • Posts: 57
  • Karma: +0/-0
    • View Profile
Constraints for Profile
« on: July 24, 2013, 01:30:14 am »
Hello,
I created a UML meta model (domain model) and started to author a profile which is based on the architecture of the domain model. My plan is to create a MDG technology with some customized diagram types and modeling stereotypes.

My question is, what possibilities are available for constraining such a profile? For example, I want certain connectors (relationship stereotypes) only to be used on certain model stereotypes. Another example would be multiplicities. I defined them in the domain model as well as the profile, but after profile creation they seem to be ignored.

-> Is there a way to check these constraints during modeling?
-> Is there a way to check these constraints after modeling? (some type of model checking according to some rules or meta model)

Thanks

Martin

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Constraints for Profile
« Reply #1 on: July 24, 2013, 02:05:30 am »
You can use the quick linker to limit connectors by suggestion. It does not check for constraints but simply offers a limited subset. If you're after more sophisticated constraints you need to write an add-in.

q.

martin1

  • EA User
  • **
  • Posts: 57
  • Karma: +0/-0
    • View Profile
Re: Constraints for Profile
« Reply #2 on: July 24, 2013, 05:39:44 am »
Are there any reference techniques, guidelines or documents available, showing the concept of model checking via add-ins?

martin

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Constraints for Profile
« Reply #3 on: July 24, 2013, 07:29:33 am »
Not really. You are completely open here. In principal you intercept the EA_On... broadcast events and act according to the propagated user actions.

q.

André Ribeiro

  • EA User
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
Re: Constraints for Profile
« Reply #4 on: July 24, 2013, 10:48:08 pm »
Hi martin1,

I think this link might be helpful to you, at least for me was:
http://www.sparxsystems.com/enterprise_architect_user_guide/10/automation_and_scripting/model_validation_example.html
I've implemented a custom model validation using some of those functions.

Good luck! :)
« Last Edit: July 24, 2013, 10:49:54 pm by krypton »