Legacy: ConfigAutomationDiffBase script includes

The ConfigAutomationDiffBase script include allows you to define how to handle changes to a CI or node definition from the change management system. The script include as the basis for creating the Difference Extension by CI and Difference Extension by Node Definition scripts.

Script Use

To create both of the scripts, make a copy of the ConfigAutomationDiffBase script include and implement the process method for the new configuration provider. The method should return a single JavaScript object with the two properties described in the following table.

Property Type Description
short description String Returns the information for the Change Request short_description field.
description String Returns the information for the Change Request description field.

Difference Extension by CI

This script checks for changes from the change management system that affect the ServiceNowConfiguration CI. Implement the process method to check for any changes. In this case, the input parameter is the CI sys_id.

Difference Extension by Node Definition

Note: A node definition is called a configuration template in the ServiceNowProvider.

This script checks for changes from the change management system that affect the ServiceNow node definition. Implement the process method to check for any changes. In this case, the input parameter is the node definition ID.