Book a Demo

Author Topic: Versioning Code and Transformation Templates  (Read 2707 times)

Daniel Sirz

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Versioning Code and Transformation Templates
« on: March 03, 2009, 12:16:19 am »
hello,

we are looking for a solution to version our Code and Model-Transformation Templates.

The actual problem is, that we have made some changes to the C# Model and Code Transformation Templates.
These templates are the Baseimplemantation of our transformation. But if we make changes on the templates the modification directly affects to all users. In this case it is impossible to handle bigger changes in the templates without blocking the other team members.


Is there a way this can be managed?

We want to version these changes. How can we achieve this?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Versioning Code and Transformation Templates
« Reply #1 on: March 03, 2009, 08:13:13 am »
I'd recommend working on the templates in a private model, and using the Export Reference Data to get it back into your shared model when you're done.  (See the note at the bottom of http://www.sparxsystems.com/uml_tool_guide/code_engineering/thecodetemplateeditor.html)

If you wanted to you could also add the exported file to version control (manually, outside of EA)

Daniel Sirz

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Versioning Code and Transformation Templates
« Reply #2 on: March 03, 2009, 10:11:51 am »
Hello Simon,

thank you for the reply.

The main problem on your suggestion is that if i import the Reference Data back in the shared model it can happen that the Custom Templates are not merged correctly.
Somewhere in the Documentation it said that records are updated but never deleted.
Example: In the shared Model i have a template called "Operation__Test". In my private model i decide to delete that record. I export my private model and import it in the shared model. Now the "Operation__Test" Template doesn't get deleted automatically.

Is there any other solution of "rolling back" a Model or Code Template?

I really appreciate your answer, but maybe you have another hint for me  :)

Thanks, Daniel

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Versioning Code and Transformation Templates
« Reply #3 on: March 04, 2009, 08:26:08 am »
Sorry, only suggestions I have are to
  • manually delete removed templates
  • leave them around (if you aren't wanting to go back to a default template)
  • run a sql delete before importing.
« Last Edit: March 04, 2009, 08:27:55 am by simonm »