Book a Demo

Author Topic: Transformation - Create Connector to New Class  (Read 4159 times)

Frank Crow

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Transformation - Create Connector to New Class
« on: March 27, 2013, 10:31:30 am »
Hi,

I'm trying to write a transformation template that, for each input <<ServiceInterface>>, creates a new class that realizes that service interface.

I have the template creating the new class already.   The details on connecting the new class to the existing service interface are a little fuzzy.

Any info is highly appreciated!   :)

Thanks,
Frank

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Transformation - Create Connector to New Class
« Reply #1 on: March 27, 2013, 11:17:47 am »
See the topic "Connecting to a Class for which you know the GUID" on the following page:
http://www.sparxsystems.com/enterprise_architect_user_guide/9.3/model_transformation/transform_connectors.html

Frank Crow

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Re: Transformation - Create Connector to New Class
« Reply #2 on: March 27, 2013, 11:27:18 am »
I managed to get my template to create a realization from the newly created class to the copied service interface.   The only difference between doing that with the transform and manually, is that the EA GUI will allow me to select operations to implement and automatically populate them.

How can I emulate that behavior in the transform?

Thanks,
Frank

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Transformation - Create Connector to New Class
« Reply #3 on: March 27, 2013, 12:19:23 pm »
Not possible to show the prompt to select operations to be overridden during the transformation.  If you want to automatically copy all operations from the original interface element, you should be able to handle this in the Operations template of your transformation.  If you only want to copy operations based on specific criteria, you should also be able to handle that as well.