JET exemplar-structured data importer sample setup instructions

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

  1. On the main page of this sample, click the link to import the domain-specific sample JET transformation project or projects.
  2. In the Project Explorer view, select the project that you imported in step 1; then click Project > Clean to generate Java™ code from the sample JET templates, and compile the generated code.
  3. 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.
    1. Click File > New > Other > Modeling > Model Project; then click Next.
    2. 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.
    3. 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.
    4. In the File name field, specify a file name; for example, domain_sample1.
    5. 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.
  4. Alternatively, if you are working with the deployment planning domain, create a project and a target topology as described in Creating topologies.
  5. Import the spreadsheet that contains the model representation: Click File > Import > Modeling > JET-based model import; then click Next.
  6. On the Import a Model from a Spreadsheet page, complete the following steps:
    1. In the Source file field, browse to the CSV file in the sample project that you imported in step 1.
    2. From the Target domain list, select the target domain that corresponds to the type of model to generate.
    3. 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.
    4. From the JET transformation ID list, select the name of the transformation project that you imported in step 1.
  7. Click Finish.
  8. 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.

Feedback