enterprise-architect

Class and method generation from Sequence Diagram


I'm using Enterprise Architect 17 and trying to generate classes and public methods from a Sequence Diagram. I either drag an existing object as a Lifeline or create a new Lifeline directly in the diagram. I add messages between lifelines and expect the tool to generate classes and public methods based on those messages. However, when I run the transformation, nothing happens — no class or method is created.

What am I missing?


Solution

  • There is no such thing as code generation from sequence diagrams in EA.

    You can generate code from Classes that have Operations, and you can generate code from StateMachines, but not from sequence diagrams.