uOttawaUniversity of Ottawa - Canadas University
list of dots

Umple User Manual    [Previous]   [Next]   

Loading

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

 

Another Example

// The following example does not generate the error

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

Load the above code into UmpleOnline