Model Transformation: UML 1.3 to UML 2.1

Overview

This sample transforms a UML 1.3 model into a UML 2.1 model. The transformation is limited to a subset of the class diagram:

Launch configuration

 
Ruleset com.sodius.mdw.samples.uml1_to_uml2.UMLConvert
Rule main
Arguments a UML 1.3 input model (e.g. models/product13.xmi)
a UML 2.1 output model

Here is an example of a UML transformation launch:

Features demonstrated

Feature Example Location Reference
Creating an instance target.create("DataType") UMLConvert.mqr Model APIs
Using subrules rule createPackageContents::createClass() UMLConvert.mqr rule
Filtering a list of instances based on a criterium element13.taggedValue.detect("tag", "documentation") UMLConvert.mqr MDWList
Using transient links element13#coref.add(element21) UMLConvert.mqr transient links