Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » StateMachine validation fails
StateMachine validation fails [message #1745813] Mon, 17 October 2016 18:42 Go to next message
Stephen Blackwell is currently offline Stephen BlackwellFriend
Messages: 138
Registered: March 2014
Senior Member
When I try to validate the state machine I showed in this topic

https://www.eclipse.org/forums/index.php/t/1081918/

by right clicking RootElement->Class2->StateMachine1 in the Model Explorer and then selecting validation->validate subtree, I get this error

"The feature 'uml::StateMachine::region' of 'RootElement::Class2::StateMachine1' with 0 values must have at least 1 values"

However if I validate the RootElement->StateMachine1 it succeeds.

First off, I would expect it to validate the same in both places.
Seconds, what is this error attempting to tel me? If I look at the properties of Region1 there is nothing to add.

index.php/fa/27388/0/
Re: StateMachine validation fails [message #1745814 is a reply to message #1745813] Mon, 17 October 2016 19:29 Go to previous messageGo to next message
Charles Rivet is currently offline Charles RivetFriend
Messages: 219
Registered: May 2014
Location: Canada
Senior Member

Hi Stephen,

You are validating two separate and different state machines, so it is possible that the results be different.

The state machine in "Class2" has an empty region, i.e., no states, transitions, etc., which is why you get an error - an empty state machine with no state, transitions, etc. is not very useful... (I would have expected a warning to be able to handle incomplete models, but to each his own...)

The state machine in "Root Element", on the other end, does have states, transitions, guards and all the good stuff that makes a state machine interesting.


/Charles Rivet
Re: StateMachine validation fails [message #1745817 is a reply to message #1745814] Mon, 17 October 2016 20:39 Go to previous messageGo to next message
Stephen Blackwell is currently offline Stephen BlackwellFriend
Messages: 138
Registered: March 2014
Senior Member
Thanks Charles,

I didn't realize I had created 2 state machines.
Had I looked at the fully qualified name I would have seen. A lesson learned.

I might want to argue about the wording of the error message though.

Steve
Re: StateMachine validation fails [message #1745819 is a reply to message #1745817] Mon, 17 October 2016 20:57 Go to previous message
Charles Rivet is currently offline Charles RivetFriend
Messages: 219
Registered: May 2014
Location: Canada
Senior Member

You're welcome. It happens to all of us at some point

You said:
I might want to argue about the wording of the error message though.

I agree. Technically correct, not good user experience.


/Charles Rivet
Previous Topic:Problem updating Papyrus
Next Topic:Creating extended diagram types based on the delivered ones
Goto Forum:
  


Current Time: Tue Apr 23 08:49:33 GMT 2024

Powered by FUDForum. Page generated in 0.04176 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top