Sparx Systems Forum

Enterprise Architect => Suggestions and Requests => Topic started by: Uffe on November 14, 2013, 09:17:51 pm

Title: Model Validation: Fix
Post by: Uffe 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
Title: Re: Model Validation: Fix
Post by: qwerty 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.
Title: Re: Model Validation: Fix
Post by: Uffe 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.