Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: EA_Nj on August 27, 2002, 07:36:09 am

Title: Activity Diagrams and Code Generation
Post by: EA_Nj on August 27, 2002, 07:36:09 am
Does EA allows an architect to develop activity diagrams and generate code in Java?  I'm thinking in terms of Executable UML.. has anyone done serious code generation?

I am doing a project where time is very short and I want to generate as much code as possible.  Please advise.

Thanks
Title: Re: Activity Diagrams and Code Generation
Post by: Don on August 27, 2002, 07:42:37 pm
I've only generated code from the 'Class model' diagram.  I've generated 50 classes (including abstracts) using this approach (c#).  I've had good success.  You'll need to use namespaces which conform to the language (e.g., name your packages/views accordingly).  I've used the reverse engineering task for loading existing classes with good success.  

Yes, you do have to tweek a little, but I've found once I have the classes 'stubbed' in, I can move forward quickly.  

As such, the model does change as you discover ways to 'abstract out' more detail. Thus you can update the model and document those changes.



Title: Re: Activity Diagrams and Code Generation
Post by: EA_Nj on August 28, 2002, 06:11:03 am
I've done similar things before but I wanted to use detailed action semantics in my activity diagrams and hope to generate code that would relate to the action semantics.

Would still like to get more responses (specially from the developers of EA)

Thanks