Book a Demo

Author Topic: Is there a way to validate metamodels?  (Read 4857 times)

motivatedgorilla

  • EA User
  • **
  • Posts: 44
  • Karma: +0/-0
    • View Profile
Is there a way to validate metamodels?
« on: February 21, 2014, 05:37:38 am »
If i have a metamodel, is there a way to validate the elements being created in a particular model?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Is there a way to validate metamodels?
« Reply #1 on: February 21, 2014, 07:24:41 am »
What do you mean by "validate"?

I once used a script to check model consistency. There is also some build-in model validation but I have not used that a lot.

q.
« Last Edit: February 21, 2014, 07:25:34 am by qwerty »

motivatedgorilla

  • EA User
  • **
  • Posts: 44
  • Karma: +0/-0
    • View Profile
Re: Is there a way to validate metamodels?
« Reply #2 on: February 21, 2014, 07:26:55 am »
What i should have used instead is "verify"? How do i verify that the modelers or users are conforming to a standard i.e a node represents a server, an actor a person, etc and they are not using non-conventional constructs? Can this be done automatically?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Is there a way to validate metamodels?
« Reply #3 on: February 21, 2014, 07:28:13 am »
See my reply above :-)

q.

Ian Mitchell

  • EA User
  • **
  • Posts: 507
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
Re: Is there a way to validate metamodels?
« Reply #4 on: February 21, 2014, 07:50:01 pm »
I know of three approaches to this.
1. There's an addin called Model Guardian from Terry Merriman in the USA, which lets you define a MM (just like an MDF would) but then ENFORCE its use. It's not a simple tool, but very powerful, and would need some investment to make it work well - but what you're asking for isn't simple either.
2. I think our The Sparx Central Europe/Lieber Lieber colleagues have done some work in writing bespoke scripts to validate models - best to contact them directly
3. We use mostly eaDocX documents, with added conditional formatting to check that the MM rules are being obeyed. For example, if the rules say that every Requirement must connect to a Stakeholder, create a document which looks for this, and highlights where there is a missing link.

Not a simple problem in the general case, but most people seem to be OK with a small MM and a small set of rules.
Ian Mitchell, Designer, eaDocX


www.eaDocX.com
www.theartfulmodeller.com