ValidateWorkOrderEdit
Syntax
sub ValidateWorkOrderEdit
Description
This function is called for every change request, in which the work order contains hostnames, host and service groups, and/or comments that were manually edited. It receives the change request as input, as well as the edited work order elements. It returns the elements that are invalid.
Configuration
By default, this hook is not called. To configure the hook, complete the procedure below.
To enable the ValidateWorkOrderEdit hook, use the generic procedure for overriding system defaults to set the configuration parameter ExternalValidateWorkOrderEdit to the value 1. For details, see Override FireFlow system defaults.
Note:
Input Parameters
$ticket |
A Perl hash reference containing a single key called flatTicket, which points to the flat ticket representation of the change request. For details, see Flat Ticket Examples. |
$validationHash |
A Perl hash reference containing the work order elements that were manually edited. The hash contains the following elements:
|
$ruleNameInput | The rule name to be validated. |
Return Values
$invalidHash |
A Perl hash reference containing the work order elements that were found to be invalid. |