Book a Demo

Author Topic: Add template to model wizard - MDG  (Read 4430 times)

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
Add template to model wizard - MDG
« on: March 23, 2015, 10:21:57 pm »

I would like to create a generic structure of packages, that will be applied at the new-package wizard, as an offered template.

How can I add the new XMI file to the wizard? I use EA 12.



philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: Add template to model wizard - MDG
« Reply #1 on: March 24, 2015, 03:01:27 am »
Simply put you cannot use to Wizard to add a model structure to your MDG

Instead you have to edit the MTS file

Check out the PDF user guide for EA v 11 beginning at page 1577

Phil
Models are great!
Correct models are even greater!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Add template to model wizard - MDG
« Reply #2 on: March 24, 2015, 10:39:16 am »
@Tehila1: As you can see there are a couple of smart guys here too ;-) I had something like that in mind but it was buried under a pile of other stuff.

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Add template to model wizard - MDG
« Reply #3 on: March 25, 2015, 11:34:36 am »
Very briefly, what you need to do is add your XMI file to the "ModelPatterns" folder in EA's install path, and then add a "ModelTemplates" block to your MDG Technology XML file to tell EA where to find the XMI (or better, add the "ModelTemplates" block to your MTS file so it gets added to your technology when you build it). Open up some of the MDG Technologies in a text editor to see how we've done it.
The Sparx Team
[email protected]