You must import the domain-specific exemplar JET transformation
project or projects that correspond to the domain of the model that
you want to create. For the UML, UPIA, and deployment planning domains,
this sample contains a CSV file that contains a representation of
a model, and a JET transformation project that imports the spreadsheet
by using the domain-specific tags.
Procedure
- On the main page of this sample, click
the link to import the domain-specific sample JET transformation project
or projects.
- In the Project Explorer view, select the project that you
imported in step 1;
then click to generate Java™ code
from the sample JET templates, and compile the generated code.
- If you are working with the UML or UPIA
domains, create a project and target model for the domain that corresponds
to the project that you imported in step 1.
- Click ; then click Next.
- On the Create Model Project page,
in the Project name field, specify a name for
the model; for example, my.domain.example.models;
then click Next.
- On the Create Model page, in the
Categories section, select the type of model to create, and the corresponding
template:
- To create a UML model, click General, and
in the Templates section, click Blank Package.
- To create a UPIA model project, click UML Integrated
Architecture (UPIA) Modeling, and in the Templates section,
click UPIA Blank Model.
- In the File name field,
specify a file name; for example, domain_sample1.
- Click Finish.
If you are prompted to switch to the Modeling perspective,
click Yes. The new model project is displayed
in the Project Explorer view.
- Alternatively, if you are working with the deployment planning
domain, create a project and a target topology as described in Creating topologies.
- Import the spreadsheet that contains the model representation:
Click ; then click Next.
- On the Import a Model from a Spreadsheet page,
complete the following steps:
- In the Source file field, browse
to the CSV file in the sample project that you imported in step 1.
- From the Target domain list,
select the target domain that corresponds to the type of model to
generate.
- In the Target model pane, expand
the model project that you created in step 3, and click the model
file, which has .emx as a file name extension, or click the
package name in the Model folder. Alternatively, if you
are working with the deployment planning domain, select the target
topology, which has a .topology extension.
- From the JET transformation ID list,
select the name of the transformation project that you imported in
step 1.
- Click Finish.
- When the Import Completed window is
displayed, click OK.
What to do next
After you run the JET transformation, you can view the updated
target model in the
Project Explorer view.