This documentation supports the 19.08 version of BMC CMDB.

To view an earlier version, select the version from the Product version menu.

Mapping target attributes to source columns

Mapping target attributes to source columns defines how data in the source corresponds to data in BMC CMDB and the actions to be taken while transferring data between them. A source key uniquely identifies a row of data. You must specify the attributes of the CI class and the corresponding column in the external data store that together make up the source key. After a data transfer, the source key is the link that matches a record in the external data store with its counterpart in BMC CMDB.

Best Practices

Consider the following points, while choosing an attribute as a source key:

  • Do not use an attribute whose value could change or could be NULL, such as the Description attribute. If the source key of a record is NULL, the record cannot be identified and it cannot be transferred.
    If your external database has records with empty values, you can create a view of your external database to filter out such records. You can then map target attributes to source columns based on this view.
  • Select a unique attribute that you can also use for identification during reconciliation. You can select attributes to use for the source key that are already in the standard identification rule. This ensures that you can use a Standard Job for reconciliation. For more information about Standard Jobs, see Standard reconciliation jobs.
  • If you cannot use the standard rules, use attributes inherited from the BMC_BaseElement class. This simplifies your reconciliation setup by allowing multiple classes to inherit identification rules from the BMC_BaseElement class. For example, you could define a source key that relates a drive ID in the Disk drive ID column of the CalbroDiskDrive table with the CalbroIntegrationID attribute in the BMC_DiskDrive class.
  • If you select more than one key in CMDBOutput and CMDBLookUp plug-in then make sure that the data in source does not contain comma or update will not happen correctly.

When selecting the Delta option in the wizard, we recommend that you select the Delta=Yes mode when you first create the job so that the job can be run in both delta and full modes in the future. If you specify Delta=No (that is, select full mode), the transformation that is designed will require significant manual changes in Atrium Integrator Spoon to make it delta enabled.

Typically, you use a Response field when a value is generated at the time a target record is created or modified and you want that value stored in the source record. For example, you might need to store the ID number of the target record just created, or you might want to update a time stamp in the source data, indicating the time that a transfer took place.


To map target attributes to source columns for CSV or XML files

Perform the following steps to map the target attributes to the source columns:

  1. In the Mapping page, select the CSV or XML file from which you want to transfer records.
    • For CSV, columns from the selected file are displayed in the Source Columns list.
    • For XML, columns from the selected file are displayed in the Source Columns list after you select File > Xpath. The Xpath field lists all the parent nodes available in an XML file. When you select a parent node, respective child nodes are displayed in the Source Columns list.

      Note

      For XML, duplicate attributes will be renamed with an underscore and copy number( attribute name1, _attribute name_2 and so on)

      Mapping page of the Integration Job Builder wizard for XML files 

  2. Select a target attribute to which you want to transfer data. To filter attributes by name, type in the Target Attributes field. Filtering is case insensitive and displays all results containing the filter text.

    Note

    You must map all attributes identified by a * preceding the attribute name (for example, *Name).

  3. From the Source Columns table, select a column from which you want to transfer data to the selected attribute.
    To map the selected attribute to a constant value, enter the value in the field below the Source Columns table. To filter columns by name, type in the Source Columns field. Filtering is case insensitive and displays all results containing the filter text.
  4. Click Map. The selected attribute and source column move to the Mapped Columns table.

    Note

    By default, the type for all mapped fields that are listed in the XML or CSV step input is set to String. Based on your requirements, you can manually change the type for specific fields. When you change type to date, the date format must be the same format used in the CSV or XML file. For more information, see Changing the field type in the XML or CSV step input in Atrium Integrator Spoon.

  5. Repeat step 2 through step 4 for each attribute to which you want to transfer data.
  6. In the Mapped Columns table, select the Source Key check box for the Target Attribute/Source Column row that you want to specify as a source key.
  7. Repeat step 6 for each source key that you want to map.
    When you have a source key with more than one attribute from each side, the expressions are joined with an AND operator. That means a data row in the external data store matches an instance in BMC CMDB only if each pair of attributes in the source key matches.

    Note

    You must have at least one attribute/source column mapping in addition to those specified as source keys.

  8. Click the Transformation Options tab. 
    Transformation Options tab-Integration Job Builder wizard 
  9. In the Delta area:
    • Select No to retrieve all source records each time your job runs.
    • Select Yes to import only new or updated source records since the last transfer was run. Then select the column in your source that holds the time stamp indicating when each record was last modified. During each data transfer, the only records retrieved from the source are new records and those with a last modified time stamp that is later than the most recent successful transfer.
      The default value for Delta is Yes if a column in your source table has a Date/Time value. If the source is a CSV file, all columns are listed in the Delta area.

      Note

      For XML delta and CSV delta, by default, the type for all mapped fields that are listed in the source step ( Get Data from XML step for XML and Text file input step for CSV) and are set to String. When you select a field for the Delta option, you must manually change the type for that field to Date. For more information, see Changing the field type in the XML or CSV step input in Atrium Integrator Spoon.

  10. Specify whether you want to set a Response field. You can specify a field that is updated in the source record after a record is created or updated in the target. Only integer and character type values are supported in the Response field.
    1. To modify the response value, edit the UpdateResponse step.
    2. If you select Yes, select the column in your source that you want to update. 
  11. In the Delete area:
    • (default) Select No to retain a record in BMC CMDB when that record is deleted from the source data store.
    • Select Yes to delete a record from BMC CMDB when that record is deleted from the source data source. This option sets the MarkAsDelete field to Yes for the records that are deleted from the source data store.
      When you select Yes, a separate Delete transformation is created as part of the job. The Delete transformation is triggered immediately after the transformation that transfers the corresponding data to BMC CMDB is complete.

      Note

      The Delete option is also not available for relationship classes.

  12. Click Next. The Mapping page for the next CI type appears. For example, if you had selected Computer system and Disk drive to be transferred to BMC CMDB, the Disk drive Mapping page appears. If you selected only one CI, the Schedule page appears.

To map target attributes to source columns for database tables or views

  1. In the Mapping page, specify whether your source data is in a table or a view. The columns from the source table are displayed in the Source Column Name list box. 
    Mapping page of the Integration Job Builder wizard for database tables 
  2. Select the Schema and Table name for the source data.
  3. Follow step 2 to step 12 to map target attributes to source columns.

Was this page helpful? Yes No Submitting... Thank you

Comments