How to change/export the MDG profile?
Make sure that the P: maps to the TFS Workspace (use the command "net use P: <UNC-path-to-da-directory>" in a Windows CMD window running with Administrator privilege, e.g. where the da directory is the root of the TFS sandbox, and use Enterprise Architect running as Administrator to open the "DecisionArchitectMDG.eap" file located in da\<source>\metamodel\, where <source> is the src directory in your branch.For each of the profile files below, check them out in TFS before saving.
Export Technology, Diagram, Toolbox and Learning Center Profiles
- Export Technology Profile
- In the project browser, right click on the package "<<profile>> Decision Architect" and select "Save Package as UML Profile".
- Use the following values:
- Profile Name: Decision Architect
- Filename: P:\metamodel\profile.xml
- Click Save.
- Export Diagram Profile
- Expand the package "<<diagram profile>> Decision Architect"
- Open the diagram
- Right click in the diagram and select "Save as Profile..." from the context menu
- Use the following values:
- Profile Name: Decision Architect
- Filename: P:\metamodel\diagramprofile.xml
- Click Save.
- Export Toolbox Profiles
- For each <<toolbox profile>> package perform the following steps
- Expand the package and open the diagram
- Right click inside the diagram, and select "Save as Profile...".
- Use the following values as filenames (respective to diagram name)
- P:\metamodel\toolbox_chronological.xml
- P:\metamodel\toolbox_forces.xml
- P:\metamodel\toolbox_relationship.xml
- P:\metamodel\toolbox_stakeholderInvolvement.xml
- Click Save
- Export Learning Center Profile
- In the project browser, right click on the package "<<profile>> Learning Center" and select "Save Package as UML Profile".
- Use the following values:
- Profile Name: Learning Center
- Filename: P:\metamodel\learningcenter.xml
- Click Save.
- Generate MDG File
- In the EA menu navigate to : Tools > Generate MDF Technology File
- Click Next
- Open the existing MTS
- P:\metamodel\DecisionArchitectMDG.mts
- Click Next
- Name and path of MTS to save (Note: these paths are written into configuration files, they must be specified with P:\)
- P:\metamodel\DecisionArchitectMDG.mts
- Click Next
- Check the following values
- Technology: Decision Architect
- Filename: P:\DecisionArchitect\DecisionArchitectMDG.xml
- ID: DA4EA
- Icon: P:\metamodel\icons\icon.bmp
- Logo: P:\metamodel\icons\logo.bmp
- Increase version number
- Click Next
- Ensure that the following fields are checked:
- Profiles, Diagram Types, Toolboxes, Learning Center
- Click Next (Profiles)
- Move profile.xml to selected files
- Click Next (Diagram Types)
- Move diagramprofile.xml to selected files
- Click Next (Toolboxes)
- Move the toolbox_*.xml to selected files
- Click Next (Learning Center)
- Move learningcenter.xml to selected files
- Click Next (Finish)
- Click Finish, a message should appear that confirms that the file has been created
DO NOT FORGET TO COMMIT THE MDG WITH YOUR CHANGES, AND THE MTS FILE WHEN YOU ARE READY TO SHARE THE CHANGES WITH ALL BRANCHES(Do not commit the exported profiles from step 2, i.e. learning center, toolboxes etc.) The generated DecisionArchitectMDG.xml file must be copied to the Sparx Systems\EA\MDGTechnologies folder either manually (or by the add-in install) to be recognized by Enterprise Architect.
Import
(Not necessary, MDG is automatically imported by the addin)
- From the toolbar navigate to Tools->MDG Technology Import.
- Select the "DecisionArchitectMDG.xml" file we created in the export and click "OK".
- Restart EA.
References