Enhance patterns without changing their identification sections
-
- UpdatedAug 3, 2023
- 3 minutes to read
- Vancouver
- Service Mapping
Enable patterns to search for additional attributes and modify pattern discovery logic defined in identification sections by using extension sections. Each extension section contains a preconfigured set of discovery steps referred to as a shared library.
Before you begin
If your ServiceNow instance uses domain separation and you have access to the global domain, log in to the relevant domain. The selected domain must be a domain without any child domains.
Basic knowledge of programming is desirable.
Role required: pd_admin
About this task
Patterns can be of the infrastructure or application type. Infrastructure patterns are used only by Discovery for creating lists of devices. Application patterns serve both Service Mapping and Discovery, which use the same application patterns for their purposes. Each pattern including its identification and connection sections is an individual file. There are also reusable sequences of discovery steps referred to as shared libraries. Each shared library is an individual file, but it is always part of the infrastructure or application pattern and is not used as a standalone pattern. Records for both patterns and shared libraries reside in the Discovery Patterns [sa_pattern] table.
To modify the discovery logic in identification sections without changing the identification sections themselves, you can add extension sections to the pattern. Every extension section consists of a shared library, either new or existing.

The MID Server runs extension sections after identification sections and only if at least one identification section completes successfully.
If there are more than one extension sections associated with this pattern, define the order in which the MID Server runs these extension sections.

Procedure
What to do next
Click Debug to run the newly created extension section. Pattern Designer runs extension sections after running identification sections.