list of dots Digital Research Alliance of Canada logo  NSERC logo  University of Ottawa logo / UniversitĂ© d'Ottawa

User Manual    [Previous]   [Next]   

E064 Non Existent History State

Umple semantic error reported when a history state is declared in a non existent state

A transition to the history of a state must be declared on an existing state for Umple to be able to complete the transition to its stored history state.
The error will be raised if the state is not found in the state machine.

Example

//The following generates the error,
//OtherState not existing within sm
class A {
  sm {
    s1 {
      e -> OtherState.H;
    }
  }
}
      

Load the above code into UmpleOnline

 

Solution to The Above So the Message No Longer Appears

//The error can be resolved by
//declaring OtherState in sm
class A {
  sm {
    s1 {
      e -> OtherState.H;
    }
    OtherState {
      OtherStateA {
      }
      /* ... other substates */
    }
  }
}
      

Load the above code into UmpleOnline