4.2.4.3. FTP Client Gateway In
With an Ftp Client In Gateway, incoming messages are transferred from an external Ftp server. Babelway polls files from this server at regular intervals.
The specific settings are:
Server |
External ftp server address where Babelway should fetch messages, e.g. ftp.example.com |
Username |
Login or username to access files on this external ftp server. |
Password |
Password associated to the username. |
Passive Mode |
Indicates that the ftp connection is in passive. Ticking this means the ftp client will establish 2 connections to the ftp server. |
Directory |
Directory where files are to be fetched on the server. |
File pattern |
The file pattern is a regex used to filter files to import (ex: '.*\.csv' for all files ending with '.csv' or '(?!proc_).*\.csv' for all csv files that don't start with 'proc_'. If left empty, all files will be transferred. |
Protocol |
Select FTP, FTPS (Explicit mode) or FTPS (Implicit mode) protocol. |
Private key |
The private key associated with the previous username to access your account. This can be left empty if you choose to only use the password authentication mechanism. |
Suffix during transfer |
Suffix that will be appended to the file name when a file is being transferred. This mechanism is used to prevent that a file is transferred twice. |
After transfer behavior |
What will happen to your file after we have read it. This behavior is important so that your file is not read again at next poll. The possible values are :
|
Suffix after transfer |
Suffix that will be appended to the file name when a file has been completely transferred. |
Folder for transferred files |
Directory where transferred files will be moved. |
Cron expression |
Cron expression. Allows you to define complex time expressions like every weekday night at 23:00 (0 0 23 ? * MON-FRI *) and the time zone for the polling. If left empty, the system will check at least once every 15 minutes. For easy creation of your cron expression, you can use the online cron maker tool available at http://www.cronmaker.com/. |
When a message is transferred to the ftp server, it is processed immediately then the original file is removed from the server.
Note:
- In the "General" page for this Gateway In you can see the "Poll now" button. When clicking on this button this will poll all of the messages immediately (and will not wait for the next defined moment).
- In Babelway, we're using the standard Java version of REGEX, and it's the same used all over the system.
- If there is a file name provided in the "Message In" or "Message Out" which contain ~ tilde character, All browser based on Chromium will replace the ~ tilde character by the _ underscore character when you try to download the file from the Babelway interface, For more details you can check this link https://bugs.chromium.org/p/chromium/issues/detail?id=479419
- You can check bunch of info like last success date, last message date …etc. by pressing on Run Info button.
- The maximum file size accepted by this gateway is 100/250 MB.