Macro completion status

The script run can complete with one of the status such as Completed, Warning or Error. Warning is handled by a special file that flags warnings. The status is set by the script code:

  • When the script returns with exit code 0, the macro completes with a status of Completed. This sets the resultant audit log entry to Severity = Information.
  • When the script returns with non-zero exit code, the macro completes with a status of Error. This sets the resultant audit log entry to Severity = Critical.
  • When the script returns with exit code 0, and if the script has generated a file called _WARN in the log folder, the macro completes with the status of Warning. This sets the resultant audit log entry to Severity = Warning.