google-code-export / umple

Automatically exported from code.google.com/p/umple
1 stars 0 forks source link

umple cannot generate state machines when strings are in guard conditions #549

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.use a guard condition comparing if two strings are equal
ex 
class fighter{
  aName;
  state{
    notFighting{ meetSomeone[aName=="Chris"]-> fighting;}
  }
}

What is the expected output? What do you see instead?

I expect to see a state diagram with the transition where someone starts 
fighting if they meet Chris. Instead I get blank space and no error message. 
Using the 'generate' option to get the state diagram results in one working 
link to download the GraphViz file and one broken link to download the SVG 
file. Looking at the GraphViz file, it's apparently generating a state machine 
with the right transitions.

What version of the product are you using? On what operating system?
umpleonline on windows 8 with chrome

Please provide any additional information below.

The code I wrote the first time I got the error:
(different guard conditions produce a working state diagram)

class Personnel
{
  name;
  job;
  status{
    Not_working{
    shift[job=="maintenance"]->Runway_maintenance;
    shift[job=="luggage"]->Moving_luggage;
    shift[job=="fueling"]->Fueling_plane;
    }
    Runway_maintenance{
    shiftend->Not_working;
    }
    Moving_luggage{
    shiftend->Not_working;
    }
    Fueling_plane{
    shiftend->Not_working;
    }
  }

}

Original issue reported on code.google.com by ch...@nau.edu on 4 May 2014 at 1:00

GoogleCodeExporter commented 9 years ago
The correct GraphViz escape code needs generating. This affects at least one of 
the state machine examples.

Original comment by TimothyCLethbridge on 12 May 2014 at 5:58

GoogleCodeExporter commented 9 years ago

Original comment by TimothyCLethbridge on 5 Sep 2014 at 2:38