MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_NextPart_01C9CB2E.FC969170" This document is a Single File Web Page, also known as a Web Archive file. If you are seeing this message, your browser or editor doesn't support Web Archive files. Please download a browser that supports Web Archive, such as Windows® Internet Explorer®. ------=_NextPart_01C9CB2E.FC969170 Content-Location: file:///C:/CF590E98/IntroductiontoModelProSupportforSPARX.htm Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="us-ascii"
ModelPro offers some facilities for supporting models developed using the SPARX modeling tools.&= nbsp; These notes address the following subjects related to those faciliti= es:
· Profiles
The SPARX tool is available at the following web site:= http://www.sparxsystems.com.au/
ModelPro generates SPARX profiles from normalized emf/= uml profiles (which in turn may have been generated from another source). The generated SPARX profiles are x= ml files conformant with SPARX uml profile representations, with suitable compensation for SPARX limitations such as multiple inheritance and cross-profile generalizations.
Profile utiliziation considerations:
A set of SPARX-compatible profiles typically used in conjunction with ModelPro provisioning may be obtained using one of the following approaches:
· Via a ModelPro wizard in eclilpse
Access location: http://mdlib.= modeldriven.org/ModelPro/Profiles/sparx
Individual *.xml files from above folder may be downlo= aded individually.
Access location: http://lib.modeldriven.org/MDLibrary/trunk/Applications/Mode= lPro/Profiles/sparx
To acquire profiles via ModelPro wizard in eclipse:
· Select menu options File/New/Example…<= /p>

From resulting dialog box select ModelPro/SoaML – latest from Repository/Tool-specific SoaML Profiles and push “Next>= ;”:

From final dialog box push “Finish”:

Result will be a new project in the workspace, with SP= ARX profiles at the indicated location:

To incorporate the profiles into a SPARX project, go t= o the “Resources” tab, right-click “UML Profiles”, and select “Import Profi= le”:

In the resulting dialog box, put “…”= :

In the resulting open file dialog box, navigate to the acquired profiles and click Open:

This will place you back in the Import UML Profile dia= log, which you may now push “Import”:

The result of the import will appear as a populated pr= ofile in the SPARX Resources tab:

Repeat the process for each desired profile. For ModelPro/SoaML provision= ing the following highlighted pro= files are recommended:

Upon completion, the SPARX Resources panel should look similar to:

Following development of a SPARX model (based on, for example, the SoaML related profiles) the model may be used for provisioning= a target architecture implementation.
Steps for preparing a SPARX model for ModelPro provisi= oning:
· Transform (SPAR= X) XMI to emf/ModelPro/uml
Following these steps, the resulting *.uml models are available for any ModelPro provisioning actions.
This step is a SPARX tool export action.
From the SPARX “Project Browser” pane, rig= ht click on the top-level Model element and select “Export Model to XMI&= #8230;”:

From the resulting dialog box, select the Filename destination for the export. T= he file location should be within some eclipse project. The “XMI Type” should = be “XMI 2.1” (or “UML 2.1(XMI 2.1)”). Other options may be chosen as desired. When option selectio= n is complete, push “Export”.

The result should appear in an eclipse project, for ex= ample:

The XMI file produced by the SPARX modeling tool in th=
e previous
step requires some additional tweaking to properly prepare it for ModelPro/=
Eclipse
EMF. A ModelPro action will p=
erform
necessary adjustments to namespaces, applied profiles, and UML libraries. To invoke the action, right-click =
on the
SPARX-generated xmi file and select ModelPro Tools/SPARX XMI 2.0 to
ModelPro/UML:
The result will be a sibling folder ready for ModelPro provisioning:
A somewhat minimal conversion of EMF/UML to SPARX is available from the SPARX modeling tool.&nb= sp; We will illustrate creating a new Project, then importing an EMF/UML model into that project.
To create a new project from SPARX: Select File/New Project..

After walking through the New Project dialogs, go to t= he “Project Browser” pane, right-click on Model and select “Import Model fr= om XMI…:

This will result in the Import Package dialog. Specify the source uml file; the r= est of the options may be chosen as desired. Push the “Import” button:

After some additional dialog, the imported uml model m= ay look similar to the following:

The elements of the model should be present in accorda= nce with the containment structure of the original model.
Warning The imported = model may have the following problems:
· Primitive types may have changed.
· Some model references may be missing.
· It may be necessary to define the UML Profil= es, as discussed in Profile Use.