The third of the prerequisites for calling functions in InterFormNG2 via commands on the IBM i platform is, that you have setup matching workflows, that are triggered by the AS400 commands, that you call.
The workflows that you create must have the workflow input type, AS400 Command input.
Here is setup of the header of a sample workflow:

- Path
The specific IBM i command option is the path. This is what you can use in order to link a command call with a specific workflow. In order to call this workflow you should state SPLF2PDF in the COMMAND field of the commands.
The commands can trigger many different workflows, and in the workflow you can use all the available functions/components.
Regarding the output you can choose if e.g. you want to save an output file directly in InterFormNG2, or if you want to return an output file back to the command. If you want to return any kind of output back to the command, then you need to ensure, that the payload of the workflow contains the data, that you want to return.
If you e.g. want to create a PDF file, then you can either save it directly in InterFormNG2 with the component, Create PDF file or you can generate a PDF to be stored in the payload with the component, Create PDF document.
A lot of workflow variables can be set in the commands. If you want to check the contents of these variables, then you can consider to use the workflow component, debug headers to dump all workflow variables and values.
Related Articles
Setup InterFormNG2 AS400 command API
The second of the prerequisites for calling functions in InterFormNG2 via commands on the IBM i platform is, that you have setup the InterFormNG2 AS400 command API on the IBM i platform. This needs to be setup in order to tell the commands how to ...
IBM i Command input
It is possible to call InterFormNG2 functions from an IBM i command, IFORMNG2/NG2CMD. The command then calls an InterFormNG2 workflow, which can generate various output and also return an output file to the command. The command will wait for the ...
Execute native OS command
This component will be unavailable if file system access has been disabled in the system settings. This component executes a native operating system command on which the application is running. This can be any command, but the typical use case would ...
High Availability setup
For multi-server installations with high availability, we support an active-active setup with multiple active application server instances, supported by a shared relational database. A load balancer should be in front, to distribute HTTPS requests ...
Setup keystore for remote clients
You need a safe keystore in order to be able to communicate between the InterFormNG2 host, and the remote clients in a safe manner. This is done by the use of a keystore. The same keystore file must be shared between the InterFormNG2 host and the ...