Book a Demo

Author Topic: Validation  (Read 4745 times)

Viking

  • EA User
  • **
  • Posts: 478
  • Karma: +2/-2
    • View Profile
Validation
« on: June 30, 2020, 04:52:32 am »
Hi,

A similar question has been asked already, see here: https://www.sparxsystems.com/forums/smf/index.php/topic,30257.msg220891.html#msg220891.

I created a UML-diagram and added elements and relationships on it which do not make sense. If I remember correctly EA normally identifies these issues. Do I need to turn something on?

If I run Model Validation the script does not find any issues (zero). Again: do I need to turn something on?

@MMA mentions a Model Validation implementation which is really powerful: https://www.sparxsystems.com/forums/smf/index.php?topic=26135.0. It WAS part of EA 12. Is it possible to get this model diagram and OCL from somewhere? Why is it not part anymore?

Are there any other (visual) models available (using constraint connector, OCL, etc.)? Or are the available validations only implemented as scripts (see https://sparxsystems.com/enterprise_architect_user_guide/10/automation_and_scripting/model_validation_example.html)?

Many thanks in advance, V.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Validation
« Reply #1 on: June 30, 2020, 09:22:30 am »
The built in validation validation will not pick up every way of creating a nonsense model.

You can write your own validation rules in an add-in. There is no support for evaluating OCL constraints.

Viking

  • EA User
  • **
  • Posts: 478
  • Karma: +2/-2
    • View Profile
Re: Validation
« Reply #2 on: June 30, 2020, 05:47:09 pm »
The built in validation validation will not pick up every way of creating a nonsense model.

You can write your own validation rules in an add-in. There is no support for evaluating OCL constraints.

Many thanks @Eve.

I am confused about your statement "There is no support for evaluating OCL constraints". There are several documents from Sparx recommending OCL for ModelValidation, for example "UML Model Management" and "Model Validation". Where is my misunderstanding?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Validation
« Reply #3 on: June 30, 2020, 08:47:25 pm »
What you read in Sparx documentation is mainly sales speak. There is no support for OCL in EA except that you can type in OCL statements where UML allows it. Any rubbish instead of OCL is not recognized by EA because it does not evaluate OCL itself.

q.

Viking

  • EA User
  • **
  • Posts: 478
  • Karma: +2/-2
    • View Profile
Re: Validation
« Reply #4 on: June 30, 2020, 11:54:41 pm »
What you read in Sparx documentation is mainly sales speak. There is no support for OCL in EA except that you can type in OCL statements where UML allows it. Any rubbish instead of OCL is not recognized by EA because it does not evaluate OCL itself. q.

There is chapter with several pages in different Sparx User's Guides, explaining OCL including sceendumps and success stories. They describe a fata morgana and let me spent days in finding out, how it works? Really?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Validation
« Reply #5 on: July 01, 2020, 01:46:33 am »
Well, sales people are quite good in producing fata morganas. Just try it out. Add a constraint to some class and tell it's OCL. You only get a syntax error even on correct OCL.

q.

P.S. Just googled and landed on https://sparxsystems.com/enterprise_architect_user_guide/14.0/model_domains/ocl_conformance_element_relati.html
Big Fat Lie?

More likely: Ooops. A bug. We fix that in a later version.

(re-posted since I was testing with V13.5 and the help was V14. But .... no difference in V14)

Viking

  • EA User
  • **
  • Posts: 478
  • Karma: +2/-2
    • View Profile
Re: Validation
« Reply #6 on: July 01, 2020, 02:39:54 am »
Thank you, @qwerty.