Skip to content

Execute NodeJs

Description

The Execute Node JS activity allows you to run a custom Node.js script or application as part of a workflow. You can specify the script file, working directory, command, output location, and control execution timeout.

Use this activity to:

  • Run backend automation written in Node.js
  • Process data, files, or external API responses using custom JavaScript logic
  • Integrate with CLI tools or third-party Node packages

Use Case Useful when workflows require backend processing logic like JSON manipulation, calling APIs, or custom data transformation that is best handled using Node.js.


Input

TypeDescription
FilesProject or script files required for execution

Output

TypeFormatDescription
Execution DataTableOutput from the executed command

Configuration Fields

Field NameDescription
FilePath to the Node.js script or main file to execute.
Base FolderThe folder where the script/project is located.
Working PathOptional working directory path during execution.
CommandNode.js command to execute the script (e.g., node index.js).
Output DirectoryFolder path to save execution output files.
Max Execute TimeMaximum time (in seconds) to allow script execution before timeout.
Refresh IntervalInterval (in seconds) to poll for execution status.

Sample Input

Not applicable — input files are provided through the Files field.


Sample Configuration

FieldValue
Fileindex.js
Base Folder/user-scripts/
Commandnode index.js
Output Directory/output/
Max Execute Time60
Refresh Interval5

Sample Output

CommandOutput
Hello World!