E065 No Substates History State
[Previous]  [Next] 
|
User Manual [Previous]  [Next] E065 No Substates History StateUmple semantic error reported when a history state is declared at a state with no substates
A transition to a history state can only be declared on a state with substates, as a state with no substates
has no history to be managed. Example//The error is generated because //s2 does not contain a substate //and therefore no history to //be managed class A { sm { s1 { e -> s2.H; } s2 { } } } Load the above code into UmpleOnline Solution to The Above So the Message No Longer Appears//The following does not generate //the error as s2 contains substates //and can keep the last substate in //memory class A { sm { s1 { e -> s2.H; } s2 { s2a { } s2b { } /* ... more substates */ } } } Load the above code into UmpleOnline |