Book a Demo

Author Topic: Getting the info about type from DataType name  (Read 3303 times)

Jakub

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Getting the info about type from DataType name
« on: November 29, 2013, 06:49:14 am »
Hi,

I am writing a transformation and I would really appreciate a function which base on DataType name can provide me info whether type has stereotype Class, Enum etc.
To be precise - in the body of Operation transformation I would like to know if OpReturnType has stereotype Enum - as I need some special treatment in the transformation. I do not have GUID etc.

I need to replace type for enums by int.

Thanks for helping me out

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Getting the info about type from DataType name
« Reply #1 on: November 29, 2013, 11:05:26 am »
Look at EXEC_ADD_IN in the help. You write an add-in that takes calls from the template to retrieve additional information.

eg. In your template you call
Code: [Select]
$isEnum = %EXEC_ADD_IN("MyAddin", "isEnum", opReturnClassifierGUID)%