Flow Run by FTP
To run a Flow, you can connect to the FTP service of the Flow Service with your account, then put the related files into the folder under the directory (The initial state is user's home directory.) which is specified with the FTP service's virtual root directory.
Flow
To create a Flow executed by FTP, you should start it with a Start Component, and finish it with an End Component.
Create a Flow
To create a Flow, you can click the "Ftp Flow" icon under the "Flow" tab in the "Create Flow" dialog box. In the created Flow, the settings for supporting FTP execution have completed.
- Flow's property
- Initial state
- Set Flow variables
- Varaibale name is FilePath. The "Public"'s check box is selected, but the "Modify"'s isn't .
- Variable name is FileName. The "Public"'s check box is selected, but the "Modify"'s isn't .
- Component
- An HttpStart Component has been put. Its property is default.
- A FileGet Component has been put.
- Output stream type is Binary.
- The "file path" property has been set as "FilePath" variable with property formula.
Start (input stream)
Flow's input stream is unprocessed. The initial value of the Start Component's output stream is "Any" if it's undefined.
Flow's parameter
Flow's parameter is a framework in which the value you want to set can be got from a caller by publishing the variable of the Flow you want to run. In the Flow executed by FTP, after defining and publishing the Flow variables with a decided name as below, the Flow Service will get a value automatically to set a Flow variable.
| Flow variable name for defining | Got contents |
|---|---|
| FilePath | Uploaded file's home directory's relative path |
| FileName | Uploaded file's name |
Finish (Output stream)
There isn't a output stream of the Flow.
Execution setting
The Flow can be connected to the folder you want to monitor with execution setting. The folder's subfolders can also be monitored.
Define an execution setting
Click "FTP" in the Execution Setting dialog box or Trigger Management's tool bar. Then after clicking "Select" in the right of the "Flow" under "Flow settings", you can select a Flow from the dialog box. When the "Folder" field under "FTP settings" is empty, the all folders under the home directory will be monitored.
About the Flow Service's FTP service
The Flow Service's FTP service is stopped in the initial state. If the FTP service is stopped, a message which says "FTP service isn't started" will be shown in the Execution Setting dialog box.
Check the state of FTP service or whether it has been started or not
FtpService's current state can be checked in the Management Console. The path is "Tools"-"Services"-"List". If the "Current state" column shows "Stop", please click "Start" in the "Start・Stop" column. Then after clicking "Redisplay", you will see "Current state" column becomes "Start".
Check FTP service's setting information
You can set FTP service's port, maximum connections and Anonymous login etc.
You can check the FTP service's setting information in the Management Console. The path is "Settings"-"Services"-"FTP". If you want to modify the setting information here, you can enter information and click "Update".
About account for connecting to FTP service
In the account's initial settings, FTP service isn't used. When the account isn't using the FTP service, a message which says "The user doesn't set to use FTP service" will be shown in the Execution Management dialog box.
User uses FTP service
To use FTP service, you can go to the use information page. The path is "Tools"-"Accounts". Then please select "Use as FTP users"'s check box in the "FTP Authorization" column.