Integrate > Micro Focus UCMDB > Using the ServiceManagerEnhancedAdapter9.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 supports only 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 start from Business Service, you can configure the adapter configuration file (XML) 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 XML 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 XML mapping file SM Business Service Relations Push 2.0.xml. In the XML mapping file, use the following OutageDependency and OutageThreadhold settings:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <integration>
        <info>
            <source name="UCMDB" vendor="HP" version="10.20"/>
            <target name="SM" vendor="HP" version="9.40"/>
        </info>
        <import>
            <scriptFile path="mappings.scripts.SMPushFunctions"/>
        </import>
        <target_entities>
            <source_instance root-element-name="Root_directly" query-name="EA_SM Business Service Relations Push">
                <target_entity name="Relationship">
                    <target_mapping datatype="STRING" name="RelationshipType" value="SMPushFunctions.getDisplayName(Root_directly['element_type'],ClassModel)"/>
                    <target_mapping datatype="STRING" name="ParentCI" value="SMPushFunctions.getEndId(OutputCI.getExternalId().getEnd1Id())"/>
                    <target_mapping datatype="STRING_LIST" name="ChildCIs" value="[SMPushFunctions.getEndId(OutputCI.getExternalId().getEnd2Id())]"/>
    
                    <target_mapping datatype="BOOLEAN" name="OutageDependency" value="true"/>
                    <target_mapping datatype="NUMBER" name="OutageThreadhold" value="1"/>
    
                </target_entity>
            </source_instance>
        </target_entities>
    </integration>