| Model Driven Development with AndroMDA3.2, Magic Draw 12.0 & Ant | |
| Software required | |
|
|
| Customize AndroMDA distribution for ease of ant script | |
| Andromda distribution is organized for Maven builds. To
use the it with ant, create a folder "xml.zips.uml2" inside
andromda-bin-3.2/andromda. Copy here, all the xml.zip files from the
following location: andromda-bin-3.2/andromda/org/andromda/profiles/uml2/andromda-profile/3.2/andromda-profile-3.2.xml.zip andromda-bin-3.2/andromda/org/andromda/profiles/uml2/andromda-profile-datatype/3.2/andromda-profile-datatype-3.2.xml.zip andromda-bin-3.2/andromda/org/andromda/profiles/uml2/andromda-profile-meta/3.2/andromda-profile-meta-3.2.xml.zip andromda-bin-3.2/andromda/org/andromda/profiles/uml2/andromda-profile-persistence/3.2/andromda-profile-persistence-3.2.xml.zip andromda-bin-3.2/andromda/org/andromda/profiles/uml2/andromda-profile-presentation/3.2/andromda-profile-presentation-3.2.xml.zip andromda-bin-3.2/andromda/org/andromda/profiles/uml2/andromda-profile-process/3.2/andromda-profile-process-3.2.xml.zip andromda-bin-3.2/andromda/org/andromda/profiles/uml2/andromda-profile-service/3.2/andromda-profile-service-3.2.xml.zip andromda-bin-3.2/andromda/org/andromda/profiles/uml2/andromda-profile-webservice/3.2/andromda-profile-webservice-3.2.xml.zip andromda-bin-3.2/andromda/org/andromda/profiles/uml2/andromda-profile-xml/3.2/andromda-profile-xml-3.2.xml.zip |
|
| Development | |
| Open Magicdraw 12.0 or 11.6 and load the modules
andromda-profile-3.2.xml.zip and andromda-profile-datatype-3.2.xml.zip Draw the class diagram for entities/value object/services. For example I have drawn a simple class diagram for value objects: ![]() Save the magicdraw project as .xml file. By default magicdraw saves the project as mdzip file. Click on File->Export->EMF-UML2 and point to a working directory. I used a directory names "src". It would generate files with extension "uml2". Leave the file with your project name and move module specific uml2 files in Andromda/andromda-bin-3.2/andromda/xml.zips.uml2. |
|
| Build | |
| Create andromda.xml file. Here is a
sample file using java
cartridge. Add the cartridges you need. Create a build file using the example ant file here.
|
|
| Evolve | Evolve your build file and AndroMDA configuration files
based on the cartridge reference document at AndroMDA:
http://galaxy.andromda.org/docs/andromda-cartridges/index.html and
How-To guides at
http://galaxy.andromda.org/docs/howto-guides.html For issues with current cartridges and tips to customize the cartridges refer to support forum. Wish you all the best for your model driven development. |

