Book a Demo

Author Topic: Including datatypes in an MDG  (Read 5108 times)

Wivel

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Including datatypes in an MDG
« on: May 19, 2011, 07:11:47 pm »
Hi

I am trying to build and MDG for a new technology, and so far I have managed to get the Profile, the Toolbox and the Diagrams to work as I want to.

What I would like to do now is to also include a set of data types in that MDG file. I have created the types and also selected that I want to include the datatypes in the MDG but they do not seem to get in there. They do not show up as Datatypes when I use the MDG in a new project.

So, what do I have to to to be able to include datatypes in an MDG? Exporting then as reference data and importing them again works, but its not the most elegant solution.

question 2: Is it possible to se the "Language" for an interface and a class in an MDG so it overrides the default language? If so, how to do?

Henrik

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1353
  • Karma: +121/-10
  • Its the results that count
    • View Profile
Re: Including datatypes in an MDG
« Reply #1 on: May 20, 2011, 08:24:30 am »
Interesting problem as MDG generation dialogs don't seem to support that feature. The only suggestion I can think of is to look at how project templates are included in MDG as they aren't supported in the MDG generation dialogs either. In a nutshell the approach is to generate an XMI file then manually edit the MTS file to include the project template in the MDG technology file created at the end of the process. Maybe you could try something similar with the data types. Let us know how you get on.
Happy to help
:)

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Including datatypes in an MDG
« Reply #2 on: May 20, 2011, 08:41:02 am »
Select 'Code Modules' as something to be included. That allows for the inclusion of Data Types and Code Templates from the current model, and an options file for the language.

Wivel

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Including datatypes in an MDG
« Reply #3 on: May 23, 2011, 12:24:36 am »
Thanks for your reply. I have tried to select "Code Modules" and from there select the Data Type I want to include in the MDG, but it seems that they are not included until you supply an Code Options File. Is that correct?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Including datatypes in an MDG
« Reply #4 on: May 23, 2011, 08:11:36 am »
No, it's not correct. You do need to tick the checkbox to the left of the language name though.