Book a Demo

Author Topic: Model Templates  (Read 5243 times)

Hannes Stauss

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Model Templates
« on: December 12, 2007, 05:40:14 am »
Hi!
I have tried to create a mts file to distribute a profile as well as a model template. I followed the steps described in

http://www.sparxsystems.com.au/EAUserGuide/index.html?toolbox_profiles.htm

however, after regenerating the MDG file, the model template does not show up in the resulting mdg file.

Thanks for any hints in advance.

Hannes

EA-Version: 7.0.818
here is my mts file:

Code: [Select]

<MDG.Selections model="C:\racoon\workspace\tmat.crm.racoon.platform.generator\racoon_dsl_test.eap">

<Technology id="racoon" name="Racoon" version="0.1" notes="The Racoon Test MDG" filename="C:\racoon\workspace\tmat.crm.racoon.platform.generator\setup\ea_setup\ea-racoon.mdg.xml"/>

<Profiles directory="C:\racoon\workspace\tmat.crm.racoon.platform.generator\setup\ea_setup" files="ea-racoon-profile-test.xml"/>

<ModelTemplates>


<Model name="Racoon Service" description="This is the description." location="ea-racoon-model-template.xml" default="yes" icon="32" filter="Racoon" />

</ModelTemplates>
</MDG.Selections>
« Last Edit: December 12, 2007, 05:41:38 am by ssuats »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Model Templates
« Reply #1 on: December 12, 2007, 01:58:33 pm »
See http://www.sparxsystems.com.au/EAUserGuide/index.html?model_templates2.htm

This says that you need to add the model templates information directly to the technology file each time you generate.

The next version should support all features supported in a technology file in the mts file, but that isn't currently the case.  (So hold on to the mts file you as you just posted, because it will work soon.)

max_ang

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Model Templates
« Reply #2 on: December 18, 2007, 02:25:33 am »
Hello,

I'm having the same problem as hannes with the model template not showing up in the resulting mdg file.
Adding the model template information directly to the technology file did not work either.
I followed both the guides mentioned in this thread, is there some place else where i can find more information?

regards,
max

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Model Templates
« Reply #3 on: December 18, 2007, 12:59:38 pm »
As I said in my previous post.  Model templates will not be generated into an MDG technology file from an MTS file in the current build of EA.  The help says to add them into the MDG Technology file directly.

Hannes Stauss

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Model Templates
« Reply #4 on: December 18, 2007, 01:14:07 pm »
Hi!
Well, I have tried to add them directly to the MDG Technology File directly, however, it did not import any model templates. Max, could you please post your example here?

Hannes

max_ang

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Model Templates
« Reply #5 on: December 20, 2007, 03:56:16 am »
Hi,

the mdg technology file:
Code: [Select]

<MDG.Technology version="1.0"><Documentation id="MyTechID" name="MyTechnology" version="1" notes="note"/><UMLProfiles><UMLProfile profiletype="uml2">

<ModelTemplates>
<Model name="Business Process Model"
description="This is the description."
location="C:\Dokumente und Einstellungen\npe\Eigene Dateien\ea.projects\mtp\businessProcessModelTemplate.xmi"
default="yes"
icon = "34"
filter= "Filter Name"/>
</ModelTemplates>

<Documentation id="E38F1776-9" name="myProfilePackage" version="1.0" notes="myProfilePackage"/>
<Content>
<Stereotypes>
<Stereotype name="MyStereoType1" notes="" cx="90" cy="70" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0">
<AppliesTo>
<Apply type="Class">
<Property name="isActive" value=""/>
</Apply>
</AppliesTo>
<TaggedValues>
<Tag name="value1" type="int" description="" unit="" values="" default=""/>
<Tag name="value2" type="int" description="" unit="" values="" default=""/>
</TaggedValues>
</Stereotype>
<Stereotype name="MyStereoType2" notes="" cx="90" cy="70" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0">
<AppliesTo>
<Apply type="Class">
<Property name="isActive" value=""/>
</Apply>
</AppliesTo>
</Stereotype>
</Stereotypes>
<TaggedValueTypes/>
</Content>
</UMLProfile>
</UMLProfiles><UIToolboxes><UMLProfile profiletype="uml2">
<Documentation id="B92C854F-F" name="myClassDiagram" version="1.0" alias="MyClass" notes="Structural elements for class diagrams"/>
<Content>
<Stereotypes>
<Stereotype name="MyClassElements" notes="" cx="129" cy="70" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0">
<AppliesTo>
<Apply type="ToolboxPage"/>
</AppliesTo>
<TaggedValues>
<Tag name="UML::Class" type="Class" description="" unit="" values="" default=""/>
<Tag name="UML::Interface" type="Class" description="" unit="" values="" default=""/>
</TaggedValues>
</Stereotype>
<Stereotype name="MyClassRelationships" notes="" cx="137" cy="70" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0">
<AppliesTo>
<Apply type="ToolboxPage"/>
</AppliesTo>
<TaggedValues>
<Tag name="UML::Package" type="Class" description="" unit="" values="" default=""/>
</TaggedValues>
</Stereotype>
</Stereotypes>
<TaggedValueTypes/>
</Content>
</UMLProfile>
</UIToolboxes></MDG.Technology>



and the mts file:
Code: [Select]

<MDG.Selections model="C:\Dokumente und Einstellungen\npe\Eigene Dateien\ea.projects\mtp\mt2.eap">

<Technology id="MyTechID" name="MyTechnology" version="1" notes="note" filename="C:\Dokumente und Einstellungen\npe\Eigene Dateien\ea.projects\mtp\myTechnologyFile.xml"/>

<Profiles directory="C:\Dokumente und Einstellungen\npe\Eigene Dateien\ea.projects\mtp" files="myProfile.xml"/>

<UIToolboxes directory="C:\Dokumente und Einstellungen\npe\Eigene Dateien\ea.projects\mtp" files="myToolBoxProfile.xml"/>
</MDG.Selections>



Adding the model template information directly to the technology file didn't seem to have any effect.

Thanks for your help,
Max
« Last Edit: December 20, 2007, 03:59:08 am by max_ang »

Hannes Stauss

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Model Templates
« Reply #6 on: January 27, 2008, 05:03:56 am »
Hi again,
any new clues on how to integrate a model template into MDG?
Regards
Hannes

Oliver F.

  • EA User
  • **
  • Posts: 573
  • Karma: +2/-1
  • ArenĀ“t we all in the model business ?
    • View Profile
    • Karl Storz homepage
Re: Model Templates
« Reply #7 on: January 29, 2008, 01:37:44 am »
Quote
Hi again,
any new clues on how to integrate a model template into MDG?
Regards
Hannes


I did exactly the same- created the templates as xmi, adapted the MDG file but instead of absolutely referencing them I found it worked best if all files were copied in the model directory of EA.

hth.

Oliver