JavaScript object: system.library

The following JavaScript object is unique to HPE Service Manager.

The system.library object allows you to call a particular Service Manager script library function.

Usage

system.library.script name.function name( function arguments )

Note Service Manager global system objects do not have constructors.

Arguments

The following arguments are valid for this function:

Argument Data type Required Description
function arguments String Yes This argument contains the function arguments you want to use.

Properties

The following properties are valid for this object:

Property Required Description
script name Yes This argument contains the script name you want to run.
function name No This argument contains the function name you want to run.

Methods

None

Example

This example does the following:

  • Creates an array.
  • Calls a script to check if a value is in the array.
var testArray = new Array();
testArray.push("Blue");
testArray.push("Pink");
var result = system.library.ArrayUtil.contains(testArray, "Blue");
print("The value you specified is in the array:  " + result);