Author Topic: How to import "intermediate language (il) file?  (Read 4185 times)

David Coon

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
How to import "intermediate language (il) file?
« 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?

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: How to import "intermediate language (il) file
« Reply #1 on: June 14, 2013, 10:01:48 am »
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
Best Regards, Roy

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: How to import "intermediate language (il) file
« Reply #2 on: June 14, 2013, 03:01:33 pm »
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.

Stephane B

  • EA User
  • **
  • Posts: 31
  • Karma: +0/-0
    • View Profile
Re: How to import "intermediate language (il)
« Reply #3 on: July 15, 2013, 06:01:06 pm »
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.
« Last Edit: July 15, 2013, 06:37:55 pm by StephaneB »

Stephane B

  • EA User
  • **
  • Posts: 31
  • Karma: +0/-0
    • View Profile
Re: How to import "intermediate language (il) file
« Reply #4 on: July 15, 2013, 06:55:51 pm »
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.