Skip to main content



      Home
Home » Modeling » Papyrus » StateMachine validation fails
StateMachine validation fails [message #1745813] Mon, 17 October 2016 14:42 Go to next message
Eclipse UserFriend
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 15:29 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: StateMachine validation fails [message #1745817 is a reply to message #1745814] Mon, 17 October 2016 16:39 Go to previous messageGo to next message
Eclipse UserFriend
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 16:57 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Problem updating Papyrus
Next Topic:Creating extended diagram types based on the delivered ones
Goto Forum:
  


Current Time: Sun Jul 13 13:14:14 EDT 2025

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

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

Back to the top