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 workflow to complete. If an error occurs in the called workflow, then the command return an error.
In order for the command option to work you first need to ensure, that the following prerequisites are met:
If the prerequisites above are met you can now call one of the InterformNG2 AS400 commands.
In short the important thing for the workflows, that execute the AS400 commands is the field, Path. This is what you can use to link a command with a specific workflow.
In the image below the path is PRINT and you should refer to that in the COMMAND field of the commands to select this specific workflow.