How to Map the CI Type’s Attributes to Web Service Fields

The integration uses the Service Manager Adapter to transform UCMDB CI attributes to web services objects recognized by Service Manager. The Service Manager Adapter uses XML configuration files to convert UCMDB queries into a properly formatted Service Manager web services messages. Out-of-the-box, each integration query has a corresponding XML configuration file. In addition, each attribute you enable for synchronization from advanced layout settings requires its own entry in the XML configuration file.

If you want to add a CI type to the integration, you must create a matching XML configuration file that defines how the Service Manager Adapter transforms each CI type into a Service Manager web service object. See Integration Queries for information about the CI types each query manages.

The following steps illustrate how to create an XML configuration file for the rdbmsData query described in previous sections.

To map a CI type’s attributes to web service fields:

  1. Log in to UCMDB with an administrator account.
  2. Navigate to Data Flow Management > Adapter Management > ServiceManagerEnhancedAdapter9.41, and select the adapter.
  3. Click the Create New Resource icon .
  4. Select New Configuration File.
  5. Enter the full file name: <AdapterID>/mappings/push/<filename>. For example, ServiceManagerEnhancedAdapter9.41/mappings/push/SM RDBMS Push.xml.
  6. Click OK. The mapping file is created.
  7. Double-click the new mapping file to open it with the Visual Mapping tool editor.
  8. In the Local Query pane, click the Add TQL Queries icon to add the rdbmsData query.

  9. Click OK.

  10. Drag and drop the node “Root” from the Local Query pane into the mapping area.

  11. Drag and drop the node “RDBMS” from the External Class Model pane into the mapping area.

  12. Drag and drop SM attributes you want into the mapping area.

  13. Drag and drop the relevant UCMDB attributes into the mapping area.

  14. Save the new mapping file.

    Note When you create or edit and then save a configuration file in Adapter Management, UCMDB automatically restarts the adapter with the new configuration file.

Using Groovy scripts in XML Configuration Files

The Service Manager Enhanced Generic Adapter uses XML and Groovy mapping scripts for four field mapping scenarios: One to One, One to Many, Many to Many, and Value Conversion. Groovy scripts have to be used for complex scenarios. For more information, see Task 7: Update the Configurations for Custom CI Types in UCMDB.