Book a Demo

Author Topic: Transformation Template  (Read 2893 times)

luizhenriquerdias

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Transformation Template
« on: September 24, 2015, 12:59:47 am »
Hello guys.
I'm trying to create a new Transformation Template to use MDA in my project. My ideia is in the image below

Is it even possible?
If it is, can you guys help me?
Thank you!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Transformation Template
« Reply #1 on: September 24, 2015, 08:19:04 am »
From your diagram it looks like you're wanting to use some form of copy-down inheritance to apply multiple (arcgis) stereotypes to an object.

It can at least be done to a single level. (List over a custom connector template with a condition that the connector is a connector and the source is the current object). Then just make the template return the target element stereotype.

Before you go any further though, you need to consider what the template will detect in order to apply this rule. (eg. No stereotype, abstract, a stereotype or tagged value that will only be used in your source model)

I'm also assuming that the name of the target class in your image wasn't a deliberate choice. The name would be derived from your source model in some way. (The templates don't just invent names)