Book a Demo

Author Topic: Cannot generate code of state machine  (Read 3714 times)

Boron

  • EA User
  • **
  • Posts: 111
  • Karma: +6/-0
    • View Profile
Cannot generate code of state machine
« on: September 20, 2012, 05:00:59 pm »
As described in the EA help system I created a state machine below a class.
When running the code generation (Java) only the class with a constructor and a finalize() method is generated. There are no methods which would implement the state machine.

I thought of creating an operation in the class an "linking" the state machine with this operation, but this 1. doesn't seem to work and 2. seems not to be the way how it shall be done.

The EA help system only tells that the state machine shall be below the class. And the help system presents example code that has been generated for a state machine. But the steps that lie between "state machine design" and "see generated code" is not described.

We are using EA 9.x Corporate Edition.
What did I make wrong? What did I miss to do? How can I generate the code of a state machine?
« Last Edit: September 20, 2012, 05:01:29 pm by Boron »

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Cannot generate code of state machine
« Reply #1 on: September 21, 2012, 09:54:15 am »
Code generation from behavioral models is not supported in EA Corporate edition.

From the EA help:

Quote
Software code generation from behavioral models is available in the Business and Software Engineering, Systems Engineering and Ultimate editions of Enterprise Architect
http://www.sparxsystems.com/enterprise_architect_user_guide/9.3/software_engineering/code_generation_from_behaviora.html

See also:
http://www.sparxsystems.com/products/ea/index.html#editions