Author Topic: Model Validation: Fix  (Read 3065 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Model Validation: Fix
« on: November 14, 2013, 09:17:51 pm »
Hej hullo hi,


An option to right-click a model validation output line and select Fix would be very useful for easily-remedied validation failures.

This could be implemented as a set of broadcasts similar to EA_OnRun*Rule(), except they would include the identity of the rule which triggered the output, and return a boolean stating whether or not a fix was applied.

For extra brownie points, a Suggest option could also be included, which would trigger a similar broadcast which would return a string with the suggested fix, which EA would then display in a dialog along with buttons to Apply and Skip.

Cheers,


/Uffe
My theories are always correct, just apply them to the right reality.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Model Validation: Fix
« Reply #1 on: November 14, 2013, 09:58:53 pm »
Hmm. What would fix mean in the respective context? Delete? If something is semantically wrong a fix is probably more than that. Usually a complex operation of brains is needed :o

q.

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Model Validation: Fix
« Reply #2 on: November 15, 2013, 07:59:13 pm »
Oh yes, there's plenty of potential to really mess things up. Hence "easily-remedied."

Sometimes it's going to be hard to do, sometimes it'll be easy - naming conventions, connector types, setting classifiers (by calling InvokeConstructPicker()), etc. It all comes down to the strictness and complexity of your metamodel.

I had a client ask for this once and implemented it as separate validation categories named "FIX: <category name>". This was much appreciated, but it requires vigilance among the users so they don't pick the wrong category and wreak havoc in the wrong model.

Plus of course doing it that way makes the whole thing a side effect which always makes me come out in a rash.
My theories are always correct, just apply them to the right reality.