Book a Demo

Author Topic: Transforming statemachine to state pattern  (Read 2517 times)

adrian

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Transforming statemachine to state pattern
« on: January 11, 2007, 06:16:56 am »
Dear Enterprise Architect users!

I am very new to Enterprise Architect and would like to create a transformation template to transform a state machine diagram into state pattern classes from which I would like to create Java code in a second step.

Has anybody already managed to this? Are there examples how to do this?

Thanks in advance!

Adrian


Bokkie

  • EA User
  • **
  • Posts: 80
  • Karma: +0/-0
  • Lima Bravo!
    • View Profile
Re: Transforming statemachine to state pattern
« Reply #1 on: February 08, 2007, 04:41:54 am »
Quote
Dear Enterprise Architect users!

I am very new to Enterprise Architect and would like to create a transformation template to transform a state machine diagram into state pattern classes from which I would like to create Java code in a second step.

Has anybody already managed to this? Are there examples how to do this?

Thanks in advance!

Adrian



Hello Adrian,

I have been there for both C# and C++ but would definitely not advice you to use Transformation Templates for complicated transformations. I found them very undocumented and the principle&practice comes with a steep learning curve. At the moment I am migrating the transformation templates to plug-ins which are easier to build and use and besides that far better to maintain. The disadvantage is that the relationships between source and the transformed result are not kept and updates are not possible - forward transformation only (or does somebody know how to do this using a plug-in??).

Succes!
Lima Bravo!