handleExecutionFinished function in the Endpoint settings or via CLI.
Transformer Function Arguments
The following table shows an overview of the function arguments:Endpoint Configuration Object
endpoint Object Properties
endpoint Object Properties
Return Values
The return value of the execution finished transformer depends on the Endpoint type you are using. There is no validation of the execution finished transformer return value. If the execution finished transformer returns a falsy value, the output isn’t sent to the Endpoint. The execution finished transformer takes theoutputs array from the output transformer and sends it to the Endpoint. For example, if you’re using the execution finished transformer in a REST Endpoint, the return value format must meet the REST Endpoint response format (text, data, userId, sessionId).
Here is an example of the correct return format for a REST Endpoint: