Book a Demo

Author Topic: MVR020001 Error in model validator  (Read 5515 times)

johnm9

  • EA User
  • **
  • Posts: 52
  • Karma: +0/-0
    • View Profile
MVR020001 Error in model validator
« on: June 19, 2008, 06:20:58 pm »
The model validator finsihed with the warning: MVR020001 to my state diagram.

My state diagram is a very simple one. I have no idea what it means and how to fix it.

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: MVR020001 Error in model validator
« Reply #1 on: June 20, 2008, 08:51:35 am »
The MVR020001 error message should tell you that element <element name> is missing a required child element. Basically, you don't have a relationship between the named element and another, or the child element is inaccessible.
Best Regards, Roy

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: MVR020001 Error in model validator
« Reply #2 on: June 20, 2008, 09:12:11 am »
Quote
My state diagram is a very simple one.
Can you send an XMI export of your state diagram to Sparx support please, and we can check if the warning message is valid or not. Thanks.
The Sparx Team
[email protected]

johnm9

  • EA User
  • **
  • Posts: 52
  • Karma: +0/-0
    • View Profile
Re: MVR020001 Error in model validator
« Reply #3 on: June 20, 2008, 11:21:22 am »
The state machine is very simple.

There is a StateMachine1, it carries 2 substates State1 and State2; 1 Initial and 1 Final. There is a transition from the Initial to State1 and one from State2 to Final.

And then I validate the state diagram and result in the following output:

MVR020001 - warning (StateMachine1 (StateMachine)): StateMachine1 is missing required child element: Region      
Validation complete - 0 error(s), 1 warning(s)      

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: MVR020001 Error in model validator
« Reply #4 on: June 20, 2008, 11:43:55 am »
OK, thanks, I'll investigate...
The Sparx Team
[email protected]

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: MVR020001 Error in model validator
« Reply #5 on: June 20, 2008, 05:48:46 pm »
It's the "Element:Composition" option in the "Project - Model Validation - Cofigure" dialog that causes it. The error disappears when you introduce another Initial pseudostate outside StateMachine1 with a transition to the latter.

johnm9

  • EA User
  • **
  • Posts: 52
  • Karma: +0/-0
    • View Profile
Re: MVR020001 Error in model validator
« Reply #6 on: June 20, 2008, 05:58:09 pm »
I wonder what the error is trying to tell me indeed because there must be some reason behind according to the UML specificiation which invalid my model.

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: MVR020001 Error in model validator
« Reply #7 on: June 20, 2008, 06:31:33 pm »
Quote
I wonder what the error is trying to tell me indeed because there must be some reason behind according to the UML specificiation which invalid my model.

Well yes, it's invalid because there is no Initial pseudostate on the root level.

Unfortunately this is less than obvious because of EA's messy handling of state machines:

Your StateMachine1 is really a sub-state(machine) of the root level state machine "EA_StateMachine1" which EA creates when you create your first state machine diagram in a package. This rool level state machine is not shown in the project browser, but you can see it clearly when you export to xmi 2.1 Also created by EA but invisible in the project browser is a region "EA_Region1" within "EA_StateMachine1". Inside this region is your StateMachine1, so the validation of "EA_Region1" fails because "EA_Region1" contains no Initial pseudostate.

I have often bemoaned the fact that EA creates these things but does not show them, but Sparxs has never really reacted. I think it's a UML 1 state chart legacy mess, but whereever it comes from, it's one of those things where what the project browser shows is misleading and the model structure can only be understood by reading the xmi.

Gusto

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: MVR020001 Error in model validator
« Reply #8 on: July 18, 2008, 02:34:35 am »
I cannot re-confirm that finding, neither can I get rid of the error.

I have created two packages:
1. State Machine "StateMachine1" with Initial, State and Final elements
2. Just Initial, State and Final elements

Validation of the overall model yields the mentioned error for "StateMachine1", no errors on the second package. In XMI however, both models look identical (except for the IDs and the fact that EA has automatically included an "EA_Statemachine1" element instead of the hand-made "StateMachine1" element).

Any ideas? Thx!

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: MVR020001 Error in model validator
« Reply #9 on: July 18, 2008, 04:48:13 am »
If you can, compress the project and send it to Sparx support, with a reference to this thread. You'll find their email address on the Support page (click the appropriate link at the top or bottom of any forum page) near the top.

Or you can send in a Registered User bug report, which will also allow you to attach the file. You'll find a link to that version of the bug report form on the Support page or above the 'general' bug report form.

I suggest you do this immediately, since the next shift (to start soon) will be Friday at Sparx, so you'll miss the weekend if you wait.

David
No, you can't have it!