How to copy files to remote systems using File Transfer Protocol (FTP)
Your application can automatically copy files from the Process Commander server system to a remote file system using File Transfer Protocol (FTP).
For example, if your application writes data from a work object to a file using the File Connector feature, the application can then upload this file to a remote FTP server.
To upload a file to an FTP server:
- Create a new FTP server data instance. Select New > Integration-Resources > FTP Server.
Note: The default TCP/IP port number fpr FTP is 21, but this may vary.
- In a new or existing activity, add a new step that invokes the Connect-FTP method.
Complete the step parameters. Using the SmartPrompt, select the FTPServer instance you created earlier.
- FTPServer — Select the FTP Server instance you created in Step 1.
- RemotePath — Select the path of the remote directory into which the file will be copied.
- LocalFile — Enter the location of the file to be copied to the remote server. Enter either an absolute path or a property that contains the absolute path.
Note: All "\" characters must be escaped by prefixing another "\" character. Alternatively, you can use a single "/" character.
Your directory structure may differ from the one presented above. Check with your system administrator.
- TransferMode — Select the method in which data will be sent over the network, either ASCII or Binary.
- Complete the following parameters:
- The name of a single value property defined on the step page, listed with a leading period.
- The name of a single value property using the PageName.PropertyName notation.
- The global resource settings notation (=PageName.Property syntax). For more information about global resource settings, see Reduce Maintenance of Service Rules and Listeners with Global Resource Settings.
- If you are writing a file as part of flow processing, add a utility shape to your flow that references the activity rule you edited or created in step 2.