Book a Demo

Author Topic: Sequence diagram  (Read 3993 times)

Paulo Silva

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Sequence diagram
« on: September 18, 2008, 06:53:09 am »
Hello !
I need generate code (c# or Java) for sequence diagram, it´s possible ?

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: Sequence diagram
« Reply #1 on: September 18, 2008, 03:23:19 pm »
If you have code that you are running under EA's Build, Test & Run then Sequence diagrams can be generated from this - see:
http://www.sparxsystems.com.au/EAUserGuide/generated%20sequence%20diagram.png
Is that what you are asking for?

Paulo Silva

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Sequence diagram
« Reply #2 on: September 19, 2008, 12:42:36 am »
I dont have code, i create sequence diagram in EA and i need generate code for this sequence diagram, ok ? it´s possible ?

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Sequence diagram
« Reply #3 on: September 19, 2008, 04:11:57 am »
EA does not support generating code from anything but class diagrams. There are ways though, with some effort:

1. You can write an AddIn or an application calling EA's automation interface to browse your sequence diagrams and generate code programatically. When you use EA's templates for code generation, you can call your AddIn from there to integrate code defined by your sequence diagrams.

2. You can export a package containing sequence diagrams to XMI and run xsl transformations with text output to produce code files.

The difference between the two is but a technical one of course. The first step would be to think up a set of conventions for sequence diagrams and the corresponding desired code results, which is not a trivial task.

Paulo Silva

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Sequence diagram
« Reply #4 on: September 19, 2008, 05:24:33 am »
Thanks a lot about your explication ! I will search others tools for agility job !!!