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

User Manual    [Previous]   [Next]   

E074 User Defined State Cannot be Named Final

Umple semantic error reported when a user-defined state is named 'Final' keyword

In Umple, 'Final' is a reserved keyword. It is used to define the final state for the top-level state machine.

Example

// The following example generates the error
// "s1" has a state named "Final"

class X {
  sm {
    s1 {
      Final {}
    }
  }
}
      

Load the above code into UmpleOnline

 

Solution to The Above So the Message No Longer Appears

// The following example does not generate the error

class X {
  sm {
    s1 {
      goToFinal-> Final;
    }
  }
}
      

Load the above code into UmpleOnline