Enabling import and export bridges for supported data model formats

The workbench supports various data model formats, many of which are enabled in the Data Model Import and Data Model Export wizards by default. However, some of the bridges that you use to import and export these data models are not enabled by default. You can edit an XML file to enable these bridges in the Data Model Import and Data Model Export wizards.

Before you begin

Procedure

  1. Locate the conf directory in the latest version of the metadata import plugin directory. The directory is in the following location:
    /shared_resources_dir/plugins/com.ibm.datatools.metadata.wizards.miti.operating_system_current_versionvdateand_timestamp/MetaIntegration/conf/
    where:
    • shared_resources_dir is the path of the product shared resources directory. This directory stores common components for Eclipse-based products. You can find the default file path for this directory in the following topic: Installation default values and conventions.
    • operating_system is the operating system of the computer on which the workbench is installed.
    • current_version is the highest version of the plugin. For example, you see the following two plugins in the shared resources directory:
      com.ibm.datatools.metadata.wizards.miti.win32_1.0.3v20100101_0000
      com.ibm.datatools.metadata.wizards.miti.win32_1.0.4v20110202_0000
      The highest version of this plugin would be the 1.0.4 plugin.
    • dateand_timestamp is the highest date and timestamp value on the file.
    For example, the metadata import plugin directory could be at the following location on a Windows computer:
    C:\Program Files\IBM\SDShared\plugins\com.ibm.datatools.metadata.wizards.miti.win32_1.0.4.v20120202_2042\MetaIntegration\conf\
  2. Create a backup copy of the MIRModelBridges.xml file by using one of the following methods:
    • Copy the MIRModelBridges.xml file to another directory on your computer.
    • Create a copy of the MIRModelBridges.xml file in the same directory and rename it. For example, you can rename it as MIRModelBridges_original.xml.
  3. Open the MIRModelBridges.xml file.
  4. Enable import or export bridges by editing the enabled attribute value of the bridge ID. The MIRModelBridges.xml file is divided into two sections: <Import> and <Export>. If you want to enable import bridges, edit the attributes in the <Import> section of the file. If you want to enable export bridges, edit the attributes in the <Export> section of the file.
    1. In the MIRModelBridges.xml file, locate the bridge ID for the model format that you want to enable. For example, to enable a Silverrun bridge, look for a bridge ID that contains the phrase Silverrun.
    2. Enable the bridge. Set the enabled attribute of the bridge ID entry to True.
    3. Specify that the bridge should display in the import or export wizard. Set the enabled attribute of the DisplayName entry to true.
    4. Save the file.
  5. Restart the workbench. Click File > Restart.

Results

When you open the workbench, the bridges that you enabled are available in the Data Model Import or Data Model Export wizard.

Example

The following example shows how to edit the bridge ID entry to enable the import bridge for a Silverrun model. By default, the bridge is disabled:
<Bridge id='SilverrunRdm244' enabled='False' windowsOnly='False'>
   <DisplayName id='' enabled='False'>Grandite Silverrun-RDM 2.4.4</DisplayName>
</Bridge>
To enable the bridge, set the enabled attribute to True:
<Bridge id='SilverrunRdm244' enabled='True' windowsOnly='False'>
	<DisplayName id='' enabled='True'>Grandite Silverrun-RDM 2.4.4</DisplayName>
</Bridge>

Feedback