Inform Drafts the current script has completed execution. Used in combination with the "Allow asynchronous execution" option of the Script step type. If your script step has the asynchronous option enabled, you must call script.complete()
to indicate completion or the script will timeout and fail.
When running a Script action step, a single
script
object will be in context to reference the currently running script.Example