Description - Writes a file to a FTP site.

Runtime Class - com.ibi.agents.XDNFTPEmitAgent


Configuration

This action requires a Generics Configuration as well as the following required parameters.

Parameter Groups

 ParameterTypeDescription
Type:stringInput from the document (default) or from an external source (MFT use)

Select from one of the following options:
  • Input Document {document} - Data sent is the input document
  • External File {external} - Data sent is from external media
  • Stream {stream} - Data sent is carried in the flow via a stream document
File ExpressionstringIf input source is 'External File' specify the file name here.
*File PatternstringOutput file pattern (* = timestamp) ie. *.XML,*.txt etc. Note: *.* is unsupported
* - denotes required
 ParameterTypeDescription
*Transfer Mode:stringWhen files are transferred in ASCII mode, the transferred data is expected to contain only character formatted text. BINARY mode refers to transferring files as a binary stream of data. Where ASCII mode may use special control characters to format data, BINARY mode transmits the raw bytes of the file being transferred. In this way, the file is transferred in its exact original form.

Select from one of the following options:
  • ascii - Transfer in character mode
  • binary - Transfer in binary mode
Behavior When Target File Exists:stringIf file exists on FTP server, what should we do? "append" means that input will be added to the end of the existing file.For "restart", if server supports REST and SIZE commands, we determine size of the file on the server, then send REST command with current file size. The input data is then sent starting at this position.

Select from one of the following options:
  • Overwrite {overwrite}
  • Append {append}
  • Resume {resume}
  • Fail {fail}
Allow Zero Byte Transfers:booleanAllows the FTP sender to transmit zero byte sources to server.
Retry Interval:stringRetry interval in seconds (allows for xxhxxmxxs format) Omit or use 0 for no retry
* - denotes required
 ParameterTypeDescription
On Start:stringThe SITE command to issue before the transfer of data
On Success:stringThe SITE command to issue after the successful transfer of data
On Error:stringThe SITE command to issue if the transfer of data fails
* - denotes required
 ParameterTypeDescription
Document Output:string'status': status document will be the out document. 'input': in document will become the out document.

Select from one of the following options:
  • iWay Status Document {status} - Replace input with standard iWay status document
  • Original Input Document {input} - Output of node is original document
* - denotes required

Output Events

NameDescription
OnParseErrorCould not parse a document.
OnFailConnectionCould not connect to the external system.
OnFailSecurityCould not operate due to a security violation.
OnFailedOperationCould not perform the operation requested.
fail_duplicateOperation failed due to duplicate resource and and this is considered an error.