TCA.done
Finishes an asynchronous operation and returns the result.
Note: The execution engine waits for completion notification after asynchronous APIs are called. It waits until TCA.done(result) is called if the execution succeeds, or until TCA.doneWithError(error) is called if the execution fails; the call should be at the end of the execution path of the JavaScript block. If neither are called, the current step fails with “Evaluate JavaScript code timeout” error.
TCA.done(result);
Arguments
result. (Optional, any) The result of the JavaScript block execution.
Return value
None
Example
IOA.read(TC.scriptDir + "mylog.txt").then(function(data){
TCA.done(data);
}).catch(function (error) {
TCA.doneWithError(error);
});