Even
though you might want to monitor a shared folder for new input files it
is still a good idea to first try to create a new file on the shared
folder to ensure, that the settings for the connection are correct.
You can e.g. do that by simply monitoring a local input folder and then simply save the input file on the shared folder.
In
this example InterFormNG2 runs on Windows and we would like to save the
input file to the IFS on an IBM i. On the IBM i there is a folder
called, APFF3812Home. This folder is already shared and the share name
is APF3812Home.
The simple setup to do this is the workflow below:
The input element looks like this:
So it simply monitors the folder inbox_saveInIFS inside the InterFormNG2_Home folder, which in this case is:
C:\ProgramData\InterFormNG2, so the full path to the monitored input folder is:
C:\ProgramData\InterFormNG2\inbox_saveInIFS
The parameters are:
Server address
This is the server name or IP-address of the IBM i, onto which we want to save the file.
Share
This is the name of the share, which has been defined. With the value, APF3812Home we refer to the share name, APF3812Home
Path and file name
This could have been setup with XPath to make it a dynamic path and/or file name. Here we use the path: /Work/inputfile.xml, which means that the full path to the saved file will be /APF3812Home/Work/inputfile.xml
Username
Here the user id for the connection is selected. This is a user id, that exists on the other machine - with the stated IP-address.
Password
The password on the other machine for the user Id stated above.
Domain
If the other server is accessed via a domain, then you need to state the domain here. If a domain is not used, then you should leave this parameter blank.
If the workflow works and is able to save the file, then you have verified the connection and you can move on.