Académique Documents
Professionnel Documents
Culture Documents
2
Exchanging metadata between ERwin and Microsoft Excel
Tom Bilcze Westfield Group
Introduction
Thanks to CA's partnership with Meta Integration Technology, ERwin 7.x offers new capabilities to import/export metadata from/to many tools. In this session, well walk through a useful process to export a data model into Excel; allow business users to edit descriptions; and import the new/revised descriptions back into the model using this metadata interchange facility of Erwin 7.x. This session is based on a hands-on lab at CA World 2007 led by Meta Integration Technology.
OEMUG 2nd Quarter 2007 Meeting Slide 2
Export
Define metadata export source and destination Export from CA ERwin to Microsoft Excel
Edit
Edit data model artifacts in Microsoft Excel
Import
Define metadata import source and destination Import CA ERwin metadata from Microsoft Excel Complete compare to merge in changes
OEMUG 2nd Quarter 2007 Meeting Slide 3
Slide 4
3 Tabs
This wizard is metadata rich maybe too rich As you click on a field, metadata is displayed in a pane on the bottom of the window. If this is the first time you are using the wizard, you will need to locate a variety of files.
OEMUG 2nd Quarter 2007 Meeting Slide 5
Slide 6
In our example, well take the default values. Be sure to read the metadata on the bottom pane.
Slide 7
Specify the location and file name for the Microsoft Excel spreadsheet you are creating. We need to specify other files for the wizard
Metadata Mapping File A MS Excel spreadsheet that maps data from the Meta Integration repository to the MS Excel spreadsheet Blank File Empty MS Excel spreadsheet with same structure of mapping file that is used to build the final spreadsheet.
There is no browse function to populate these fields. Use My Computer to copy the path and file name. Remaining fields can be left at default values.
OEMUG 2nd Quarter 2007 Meeting Slide 8
Metadata mapping files can be found in the C:\Program Files\CA\AllFusion ERwin Data Modeler r7\MetaIntegration folder Read your wizard metadata. It tells you the correct folder name. In our example C:\Program Files\CA\AllFusion ERwin Data Modeler r7\MetaIntegration\conf\MIRModelBridgeTemplate \MIRMicrosoftExcelExport
DataModel-Blank.xls DataModel-MetaMap.xls
Slide 9
Slide 10
Click on the Finish button to start the export. The Export to External Format Status Log is displayed. Check the log
In our example we had some informational messages. Last one showing a successful export.
OEMUG 2nd Quarter 2007 Meeting Slide 11
Start Microsoft Excel and open the spreadsheet you created through the export. You will see three tabs:
Main Model Information Entities Entities/Tables, Attributes/Columns and related information including UDPs Data Types Datatypes from the data model
Majority of data model artifacts but not all artifacts are displayed. Remember that Microsoft Excel is not a data modeling tool.
OEMUG 2nd Quarter 2007 Meeting Slide 12
Make your changes in the spreadsheet. You can hide and protect cells and share with others. Use caution when changing the format of the spreadsheet. Export/import uses macros and other Excel features.
OEMUG 2nd Quarter 2007 Meeting Slide 13
Slide 14
Same interface as export wizard Did you remember where your MS Excel file is? You need to specify an import mapping file. Use metadata in the pane at the bottom of the window
In our example
Slide 16
It doesnt look like your exported data model Why? Because Microsoft Excel is not a data modeling tool! However, it does contain updated data model artifacts. So How do you get this information into your original data model?
Slide 17
Data model after laying out the data model Format > Preferences > Layout Entire Diagram
Slide 18
Use the Complete Compare wizard to import changed artifacts Filter on properties you changed in Type Selection tab. Verify and accept changes. You are done!
Slide 19
Summary
This feature is built into Erwin 7.x Todays exercise was a simple demo of the features It can be used for numerous other tools. Refer to the Import/Export Wizard. You can build your own custom mapping files. Metadata in the Import/Export Wizard is extensive. Documentation is available on CA Support Connect.
CA ERwin Data Modeler Implementation Guide (Chapter 5)
OEMUG 2nd Quarter 2007 Meeting Slide 20