Author Topic: How apply configuration management on Code and Transformation Templates?  (Read 3015 times)

Thomas Arnbjerg

  • EA User
  • **
  • Posts: 88
  • Karma: +0/-0
    • View Profile
Hi there,
3 questions:

Does any of you have a suggestion on how to track changes to code generation templates and MDA transformation templates?

Ideally a version number attached to these templates is somehow correlated to code generated so that it is possible to track the versions of MDA/Code generation templates used to create a given version of an application.

Is there a way to preventing everyone from changing these templates?

Is there a way to export/import these templates from the command line?

br
Thomas

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Code templates are stored in reference data. You can use a VC system to control that, but not from inside EA. You need to setup that from an external tool.
Code: [Select]
xmlres = Respository.CustomCommand("Repository", "ImportRefData", sXML); is one of those undocumented features which can be used to re-load a formerly saved code template. Unfortunately ExportRefData does not work. It likely needs a control word in sXML to tell which ref-data to export. Or it's simply not implemented. :-/

q.