Importing UML model information from spreadsheets
Before you begin
You must have the Structured Data Importer features installed.
You must export the spreadsheet contents into a comma-separated value (.csv) file. You must also identify the model to update with the contents of the .csv file. If you are importing into a domain-specific model, it must have the corresponding profiles applied. Otherwise, the import may fail. It is not necessary to open the model before you import the spreadsheet information.
- In the plugin.xml file, on the Extensions page: The modelLoader field must be set to com.ibm.xtools.jet.loaders.csv, and the startTemplate field must be set to the entry point to the transformation. Depending on the complexity of your project, this template might also be the template that contains the code to parse the spreadsheet information.
- The JET tag library to use must be defined as importLibrary on
the Extensions page, or in the JET template, as in the following example:
<%@taglib prefix="uml" id="com.ibm.xtools.taglib.jet.uml.umlTags" %>
About this task
You can import the contents of multiple spreadsheets into a model, but you must complete the following steps for each spreadsheet. This procedure assumes that the spreadsheet columns are in the same order in each spreadsheet.
Procedure
What to do next
If you import the spreadsheet information again, or if another file that you import contains an element that is already in the target model, the transformation updates that model element.