Book a Demo

Author Topic: How to use Target element to reference an existent class  (Read 2892 times)

mgodoy-br

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
How to use Target element to reference an existent class
« on: September 27, 2020, 10:51:30 am »
How, guys. Me again. I'm evolving in MDG transformations in order to procced in PIM -> PSM -> M2C (M2T to code, for to speak) transformation.

This time around, I'd like to create a couple of classes that specialize the existent ones. So, I'm using Generalization tag and Source/Target, combining with TRANSFORM_REFERENCE.

The problem is that just works when my target is also created in my script and when I include that target in generation. I want to use an already existent class in my model, but without have to select it.

I mean, it's a PIM, right? I want to select a class without have to worry about technology, just to set a stereotype to it. My transformation have to concern about that, generating my pattern, including resolve all the generalizations to already existent classes from my framework.

How can I achieve that?
« Last Edit: September 27, 2020, 11:52:38 am by mgodoy-br »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: How to use Target element to reference an existent class
« Reply #1 on: September 28, 2020, 08:15:15 am »

mgodoy-br

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: How to use Target element to reference an existent class
« Reply #2 on: September 29, 2020, 10:37:59 am »
Thank you very much! It've totally worked!!