Book a Demo

Author Topic: How to create Model Validation Rules  (Read 6027 times)

Danor

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
How to create Model Validation Rules
« on: April 24, 2013, 09:48:54 pm »
Hello,

EA contains a Model Validation, which can be run from ( Project | Model Validation | Validate Selected ).
I already searched the Forum with keywords and checked the EA help, but couldn't find something.

Can I, or how can I add/define new Rules. To add these to the Model Validation ?

Thanks for your help :)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How to create Model Validation Rules
« Reply #1 on: April 24, 2013, 10:42:54 pm »
You must have a different manual then the one I have.
There's a whole lot on creating your own rules. There's even a complete Model Validation Example right there in the manual.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How to create Model Validation Rules
« Reply #2 on: April 25, 2013, 12:39:48 am »
In the Validation/Configure window there's even a help button which brings you there.

q.

Sorno

  • EA User
  • **
  • Posts: 71
  • Karma: +0/-0
    • View Profile
Re: How to create Model Validation Rules
« Reply #3 on: March 10, 2014, 10:51:33 pm »
At least for me I couldn't find the relevant chapters very easily, since there is no reference from the pages about validation to the chapter explaining custom rules. Clicking on the help-button in the Model Validation dialog only show information about the built-in UML validation. It does mention that "You can define additional rules from any additional Add-Ins", but there is no reference to where you can get more information.

So for future reference and readers, the relevant part is hidden in the Add-in chapters, in Model Validation Broadcasts:

http://www.sparxsystems.com/enterprise_architect_user_guide/10/automation_and_scripting/validation.html

And here is the example, mentioned by Geert:
http://www.sparxsystems.com/enterprise_architect_user_guide/10/automation_and_scripting/model_validation_example.html

There is also information about validation in the MDG-chapters. Here it is explained how to create sets of rules in your MDG:
http://www.sparxsystems.com/enterprise_architect_user_guide/10/extending_uml_models/model_validation_2.html
« Last Edit: March 10, 2014, 11:03:44 pm by Sorno »