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, IBM i 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
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 ...
The IBM i commands
It is possible to run a CL command from your CL-programs on the IBM i (AS400) platform. If you want to do that, then you should check out this section for the prerequisites. InterformNG2 is shipped with two predefined commands, that are both quite ...
Setup InterFormNG2 IBM i 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 ...
Spool2XML setup and settings on IBM i
This section covers setup and settings for Spool2XML only. For normal implementation of InterformNG2 on the IBM i platform (without Spool2XML) you can refer to e.g. these sections: Installing InterformNG2 on IBM i and Start/stop InterformNG2 on 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 ...