Profound.js programs running on NodeRun.com can be called using the NODERUN CL command or program. The program to run is identified by the NodeRun workspace owner and workspace name. The workspace's start program is executed, and parameters can be passed back/forth. Access tokens can be used to run workspaces that don't allow public access.
The NODERUN command takes the following parameters:
- Workspace owner - Specifies the profile handle that owns the workspace to run.
- Workspace - Specifies the name of the workspace to run. The name can be given in either the descriptive format, or in the format used in the workspace URL
- Access token - Specifies a NodeRun access token, for running workspaces without public "run" permission.
- Parameters - One or more parameters can be specified to pass to the Profound.js program. Note: Unlike the CALL command, NODERUN command does not modify the data in CL variables that are passed as parameters.
The Node.js module you call may either present an interactive user interface or just perform back-end business logic, in which case control is immediately passed back to IBM i after the Profound.js program finishes executing. See the command help panels for more information on using the NODERUN command.
The NODERUN program performs the same functions the NODERUN command, except that parameter values changed by the Profound.js program are returned to the caller.