Book a Demo

Author Topic: Generate code from state machine diagram  (Read 8710 times)

user346

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Generate code from state machine diagram
« on: December 09, 2015, 11:13:43 pm »
Hey,

how can I generate a code from a state machine diagram?
I found that example 'Java Code Generated From State Machine Diagram', but I don't know how to do this in EA. It isn't explained there.

Thanks for your help.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: Generate code from state machine diagram
« Reply #2 on: December 10, 2015, 07:16:26 am »
Quote
I don't know either. But Google told me this: http://www.sparxsystems.com/enterprise_architect_user_guide/9.3/software_engineering/code_generation_from_behaviora.html

It's nice that the Sparx web site encourages Google to index the oldest help :-)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Generate code from state machine diagram
« Reply #3 on: December 10, 2015, 07:34:11 am »
They care about internet like for their UI. My POV.

q.

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Generate code from state machine diagram
« Reply #4 on: December 10, 2015, 09:32:47 am »
Quote
how can I generate a code from a state machine diagram?
I found that example 'Java Code Generated From State Machine Diagram', but I don't know how to do this in EA. It isn't explained there.
First, which edition of EA do you have?  Code generation from behavioral models is only available in the Business and Software Engineering, Systems Engineering and Ultimate editions of Enterprise Architect.

user346

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Generate code from state machine diagram
« Reply #5 on: December 10, 2015, 05:33:04 pm »
@qwerty, I have already seen that link, but it didn't really helped me.

@Aaron, I have got the Corporate Edition. So do I need one of the versions you have listed there?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Generate code from state machine diagram
« Reply #7 on: December 11, 2015, 09:35:24 am »
Quote
I have got the Corporate Edition. So do I need one of the versions you have listed there?
Yes, you need one of those editions to generate code from a State Machine.  Corporate edition does not support code generation from behavioral models.

user346

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Generate code from state machine diagram
« Reply #8 on: December 12, 2015, 12:57:21 am »
@qwerty, I saw that page, but there is one feature called 'Executable Code Generation from Behavioral Models' and another with 'Code Generation for State Machines', that irritated me a bit. I still appreciate your help.

@Aaron, I installed the trial version of Systems Engineering now, it's working fine, thank you.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Generate code from state machine diagram
« Reply #9 on: December 12, 2015, 01:08:56 am »
There are quite some confusing sides around EA. Nothing is obvious here ;)

q.