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

User Manual    [Previous]   [Next]   

W066 Transition Multiple Possible Destinations

Umple semantic warning issued when a transition has multiple possible destinations

If a transition's destination state name has multiple occurrences in the state machine, this warning will be issued, as it is possible the developer means to reference a specific substate of the same name. The dot notation should be used to clarify which substate is intended to be the destination state.
The transition destination is by default the highest level state in the state machine. In the case of multiple states at the same level using the same state name, Umple currently assumes the state that has been defined first is being referenced.

Example

//The following generates the warning
//as s1 could designate both s1 and s2.s1
//By default, it is s1
class A {
  sm {
    s1 {
      e -> s1;
    }
    
    s2 {
      s1 {
      }
    }
  }
}
      

Load the above code into UmpleOnline

 

Solution to The Above So the Message No Longer Appears

//The warning does not occur
//by removing the ambiguity
class A {
  sm {
    s1 {
      e -> s2.s1;
    }
    
    s2 {
      s1 {
      }
    }
  }
}
      

Load the above code into UmpleOnline