Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: David Coon on June 14, 2013, 09:51:03 am
-
I'm developing a transformation and would like to be able to test/debug by importing il files directly (to test the results). Is there an "import il file" option somewhere that I'm missing?
-
Not specifically, as far as I know.
Is there anything in these two Help topics that you can use?
Model Transformation > Write Transformations > Intermediary Language
Model Transformation > Write Transformations > Intermediary Language Debugging
-
Given the MDA is "Model Driven" I am not sure that would make sense. The intermediary file is generated from the model purely for checking that the source/transform has what is required. So, best to get the model/transform right first.
-
Hi, haven't tested it but I may have a hack for this :
- create a transformation template that just outputs the notes of a class.
- copy-paste the IL you want to import in an dummy class' notes
- transform this class.
-
Tested and working. But dirty it is!
The transformation "ImportIL" is :
-In the "File" template, you just write: %Class%
-In the "Class" template, simply: %classNotes%
And that's it.