Book a Demo

Author Topic: Code Generation of state Machine  (Read 3625 times)

LeeBaker

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Code Generation of state Machine
« on: May 14, 2013, 03:18:59 am »
Hi,

I'm having difficulty code generating from a state machine.  Essentially the state machine is being ignored.  I assumed it was due to my model and so tried code generating from the EA example as shown in the following link.. http://www.sparxsystems.com/enterprise_architect_user_guide/software_development/code_generation___state_machin.html

The process I go through simply right click the "Order" class and select "Generate Code", in the dialog displayed I select the path and Target Language of java and hit "Generate".  The resultant code file does not contain the state machine code as it should.

I'm using EA version 9.3.

Any assistance would be appreciated as this is quite frustrating.

Thanks
Lee
« Last Edit: May 14, 2013, 03:21:50 am by bakerlp »

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: Code Generation of state Machine
« Reply #1 on: May 14, 2013, 02:44:54 pm »

LeeBaker

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Code Generation of state Machine
« Reply #2 on: May 14, 2013, 06:25:21 pm »
The link supplied does not seem to imply either way? It simply contains information on state machine diagrams...I assume therefore it should support it??
As stated, I'm using version 9.3.931.  

LeeBaker

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Code Generation of state Machine
« Reply #3 on: May 14, 2013, 06:34:28 pm »
The following link also states that from 7.5 onwards code generation of state machines is supported.
http://www.sparxsystems.com/support/faq/code_generation.html

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: Code Generation of state Machine
« Reply #4 on: May 14, 2013, 08:13:59 pm »
I'd guess Dermot's point can be found at the Notes section in the end of the linked page:

Quote
Software code generation from behavioral models is available in the Business and Software Engineering, Systems Engineering and Ultimate editions of Enterprise Architect

Are you using one of these editions?

Best regards,
Günther

LeeBaker

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Code Generation of state Machine
« Reply #5 on: May 14, 2013, 08:38:03 pm »
Makulik and Dermot, many thanks.  That seems to be the reason as we have the Corporate edition which does not have that capability.
See link for edition comparison. http://www.sparxsystems.com/products/ea/index.html

Thanks again
« Last Edit: May 14, 2013, 08:45:25 pm by bakerlp »