runScript
For more information regarding JavaScript, please refer to the Javascript section:
JavaScriptrunScript
command runs a provided JavaScript file.
A script would typically perform some action and set an output value that could be accessed later. See Outputs for more information.
You can directly access env
parameters from within JavaScript. See Parameters & Constants for more information.
Passing parameters
runScript
accepts env
parameters, in the same way as runFlow
does (see Nested Flows).
Running conditionally
You can use conditionals to run a JavaScript file when some condition is true. For more information, please refer to the conditionals documentation.
Console logging
Console logging is supported from the javascript files provided in runScript
command. Logs from javascript are redirected to the console when using Maestro CLI.
Last updated