Integrate > Micro Focus UCMDB > Using the ServiceManagerAdapter9.41 Adapter > Standards and Best Practices > Frequently Asked Questions > How do I Keep the Outage Dependency Setting of a CI Relationship in SM

How do I Keep the Outage Dependency Setting of a CI Relationship in SM

Out-of-the-box, CI relationships that are pushed from UCMDB to SM do not have outage dependency information by default. If you need such information, you can set the DEM rule of the CI Relationship WSDL as follows:

  1. Log in to Service Manager as a system administrator.
  2. Navigate to Tailoring > Web Services > Discovered Event Manager Rules.
  3. Open the ucmdbRelationship record.
  4. On the Rules tab, select Add the record, and set dependency as true.

    This will set the Outage Dependency of each CI Relationship to true, and set the number of dependent downstream CIs to 1 (because UCMDB only supports one-to-one relationships).

If you want to set outage dependency only for some relationships, for example, if you want to configure outage dependency for relationships that starts from Business Service, you can configure the adapter configuration file (XSLT) and WSDL definition; you can also configure outage dependency per relationship type (UCMDB query).

  1. In the WSDL definition, expose fields outage.dependency and outage.threshold.

  2. In the XSLT file, set the exposed outage fields. For example, if you want to set the outage dependency to true and threshold to 1 for Business Service relationships, you simply need to change the mapping of query and XSLT in the smSyncConfFile.xml file:
    <tql name="applicationRelationsData" xslFile="bizservice_relations.xslt">
    	<request type="Create" name="CreateRelationship"/>
    	<request type="Update" name="UpdateRelationship"/>
    	<request type="Delete" name="DeleteRelationship"/>
    </tql>
  3. In the bizservice_relations.xslt file, use the following OutageDependency and OutageThreadhold settings:
    <xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
       <xsl:template match="/relation">
          <model>
             <keys/>
                <instance>
                   <ParentCI><xsl:value-of select="@parentID"/></ParentCI>
                      <ChildCIs>
                         <ChildCIs><xsl:value-of select="@childID"/></ChildCIs>
                      </ChildCIs>
                      <RelationshipType>Logical</RelationshipType>
                      <RelationshipSubtype><xsl:value-of select="@friendlyType"/></RelationshipSubtype>
                      <OutageDependency>true</OutageDependency>
                      <OutageThreadhold>1</OutageThreadhold>
                </instance>
             </model>
          </xsl:template>
    </xsl:stylesheet>