The ProbeHandlerMulti script include is a probe handler for multiprobes.

This script include does not work with probe parameters that have value_scripts and does not work with JavaScript probes.

You can use this script include in any server-side script where you need to configure a multiprobe.

ProbeHandlerMulti - addParameters(String parent, String sysID, GlideRecord probe)

Adds the probe parameters to the given XML parent element, taken from the given probe's parameter table.

Table 1. Parameters
Name Type Description
parent String The XML parent element to add parameters to.
sysID String The sys_id of the probe to get parameters from.
probe GlideRecord Optional GlideRecord of the probe. If present, and there is a probe handler, it is called.
Table 2. Returns
Type Description
void

ProbeHandlerMulti - addProbes(String parent, String sysID)

Adds the probes for this multiprobe to the document.

Table 3. Parameters
Name Type Description
parent String The XML parent element to add the probes to.
sysID String The sys_id of the multi-probe
Table 4. Returns
Type Description
void

ProbeHandlerMulti - run()

Runs the probe.

Table 5. Parameters
Name Type Description
None
Table 6. Returns
Type Description
void

ProbeHandlerMulti - runProbeHandler(String params, String sysID, GlideRecord probe)

If the given probe's GlideRecord is present and contains a probe handler, runs the probe handler and adds any parameters it creates to the given parameter element.

Table 7. Parameters
Name Type Description
params String The XML parameter element to add parameters to.
sysID String The sys_id of the probe to get parameters from.
probe GlideRecord Optional GlideRecord of the probe. If present, and there is a probe handler, it is called.
Table 8. Returns
Type Description
void

ProbeHandlerMulti - setParameter(String parent, String name, String value)

Sets the value of a given XML parameter element.

Table 9. Parameters
Name Type Description
parent String The XML parent element to add the parameter to.
name String The name of the parameter to set
value String The value to set the parameter to.
Table 10. Returns
Type Description
void