Execution
Manage script lifecycle and create report about it. If a detached script does not report any result or failure, it will generate a result depending on the execution of the script (i.e. a syntax error will produce a result with success set to false and message containing a description of the error).
- execution.reportFailure(message: string)
Interrupt current script and report a failure with message.
- Arguments:
message – Message that describe reason of failure.
- execution.reportResult(message: string, result?: object)
Interrupt current script execution and report a message
- Arguments:
message
result – holds a result generated by the detached script