Author Topic: User guide for code engineering  (Read 10367 times)

KalpakD

  • EA User
  • **
  • Posts: 62
  • Karma: +0/-0
    • View Profile
User guide for code engineering
« on: June 03, 2021, 01:58:22 am »
Hi,
    Is there a guide for code engineering?
Or is it a part of some other guide?
regards,

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: User guide for code engineering
« Reply #1 on: June 03, 2021, 02:22:36 am »
Depends on what you take for code engineering. If you are thinking of a cycle I'd say "forget it". You can import code to get an idea and some code stubs you can manually work on. But that's all which should be done. Modelling and coding are two worlds where an architect has to build an appropriate bridge in various domains. It's all individuall work and most tricky. There's nothing off the shelf.

q.

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: User guide for code engineering
« Reply #2 on: June 03, 2021, 09:09:17 am »
Are you talking about Code Engineering within EA? If so, try starting here:

https://www.sparxsystems.com/enterprise_architect_user_guide/15.2/model_domains/development_ide.html

The facilities are available through the Develop > Source Code ribbon panel.

Best Regards, Roy

KalpakD

  • EA User
  • **
  • Posts: 62
  • Karma: +0/-0
    • View Profile
Re: User guide for code engineering
« Reply #3 on: June 03, 2021, 03:21:04 pm »
Thanks for the link.
I am able to generate code from Class and activity connected to a operation in a class.
Could not generate code from a sequence diagram in the same project.
Any simple example for that?

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: User guide for code engineering
« Reply #4 on: June 03, 2021, 03:50:30 pm »
Have a look at this.

https://sparxsystems.com/enterprise_architect_user_guide/15.2/model_domains/code_generation-interaction_.html

Does your Sequence diagram meet these requirements?

1)  To be able to generate code from behavioral models, all behavioral constructs should be contained within a Class
2)  For an Interaction (Sequence) diagram, the behavioral code generation engine expects the Sequence diagram and all its associated messages and interaction fragments to be encapsulated within an Interaction element
 
Best Regards, Roy

KalpakD

  • EA User
  • **
  • Posts: 62
  • Karma: +0/-0
    • View Profile
Re: User guide for code engineering
« Reply #5 on: June 04, 2021, 01:53:49 pm »
Thanks