title: Generate code from state diagram
body: <p>I want to generate C++ code from a State Diagram (Harrel FSM) and I'm wondering whether this is possible with EA, and if, how to go about generating code.</p>
  
  <p>I've followed the example at <a href="http://www.sparxsystems.com/enterprise_architect_user_guide/10/software_engineering/code_generation_from_behaviora.html" rel="nofollow">Sparx: Generate From Behavioral Models</a>, but when I look at the generated code it consists of skeleton code that does not include any state transitions etc. I've seen an <a href="http://www.sparxsystems.com/enterprise_architect_user_guide/10/software_engineering/code_generated_from_state_mach.html" rel="nofollow">example</a> of assumedly code generated by EA in their online help, so it does seem to be possible, but I cannot find any concrete examples of how.</p>
  
  <p>Could anyone give me some direction? Thanks.</p>