Author Topic: Model Validation  (Read 3725 times)

Monsieur

  • EA User
  • **
  • Posts: 142
  • Karma: +0/-0
    • View Profile
Model Validation
« on: November 29, 2014, 02:06:43 am »
How to configure model validation in EA (add object created with an MDG tech to it)

I have created my own objects, packages and links. I think I might have made it horribly wrong since Model Validation is sending back a lot of :
MVR7F0001 - warning (thisobject(myobject)):thisobject is unrealized      
and
MVR050002 - error (<anonymous> (Results of)): Connector is not legal for thisotherobject--> thelastexampleobject

Any clue on the proper way to do my MDG to not have those errors?

Thank for the help!

ps:
sending me to :
http://www.sparxsystems.com/enterprise_architect_user_guide/10/testing/ocl_conformance_element_relati.html
or
http://www.sparxsystems.com/enterprise_architect_user_guide/10/testing/well_formedness_element_relati.html
will not help me  :D
« Last Edit: November 29, 2014, 02:53:24 am by damien.reche »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Model Validation
« Reply #1 on: November 29, 2014, 04:16:42 am »
Maybe you should simply not care as long as your MDG does what it should do.

q.

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Model Validation
« Reply #2 on: December 01, 2014, 11:01:56 am »
The Model Validation feature has a number of built-in rule categories which can be individually enabled/disabled depending upon the type of model you are validating.

Most of the built-in rules are specifically for UML.  They will generally not provide useful results if trying to validate other model types such as BPMN, SysML, or your own custom profiles.

You can define your own custom Model Validation rules by writing an EA add-in which responds to the provided Model Validation Broadcast events.
http://www.sparxsystems.com/enterprise_architect_user_guide/11/automation_and_scripting/validation.html

Unfortunately there are no examples available at this time specifically for writing an add-in which provides custom model validation rules.  I notice in another thread however that Geert Bellekens has provided a useful page containing various tutorials and resources to help get started with writing custom a EA add-in which you may find useful:
http://bellekens.com/writing-ea-add-ins/

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Model Validation
« Reply #3 on: December 01, 2014, 11:32:02 am »
Quote
Unfortunately there are no examples available at this time specifically for writing an add-in which provides custom model validation rules.
...but this page is a good place to start: http://www.sparxsystems.com/enterprise_architect_user_guide/11/automation_and_scripting/model_validation_example.html
The Sparx Team
[email protected]