Skip to content

Call Script Functions in the Application

Parameter Configuration

ParameterDescription
ScriptThe script file where the function to be called is located
FunctionThe function in the called script file
Input ParametersList of parameters passed when calling the script function,
Capture Call ExceptionsWhether to capture exceptions in the executed script function

Return Values

ParameterTypeDescription
Return ValueObjectReturn value after script function execution
Exception CodeIntegerException code when the script function execution throws an exception
Exception MessageStringException message when the script function execution throws an exception

Usage Instructions

To centralize and branch manage scripts, this step can be used

Notes

Functions in the called script file must use es6's export modifier to expose the function externally

Capture Call Exceptions

  • If not enabled, exceptions will terminate the entire automation and directly roll back uncommitted transactions
  • After enabling, exceptions can be handled through the Exception Code and Exception Message returned by the step