A File Exporter creates files with a format that matches that of the input stream.
Form: File Exporter Details
The form provides some of the standard list icons.
The following fields are configured on the Details tab:
...
- _fromDate: the start date of the period of the stream being processed.
- _toDate: the end date of the period of the the stream being processed.
- _inputMultiplier: the value returned by the input multiplier, if one is being used.
...
A number of internal variables are available in this expression:
- _fromDate: the start date of the period of the stream being processed.
- _toDate: the end date of the period of the the stream being processed.
- _inputMultiplier: the value returned by the input multiplier, if one is being used.
If no expression is provided, or the expression evaluates to blank, the generated file will not be saved to disk and PhixFlow will check that the Send By Email tab details are completed.
...
The FTP site which the generated file will be moved to.
If no site is specified then the file is assumed to be generated and left on the local machine. If a site is specified then all directory paths specified on this form should be the full path to the file since the base directory specified in system configuration is ignored (since the base directory is specific to the local machine).
...
Files can be exported in the following formats:
Type | Description |
---|---|
Comma Separated Values | Data will be read from a single push pipe and written to CSV files. |
Excel Spreadsheet | Data will be read from a single push pipe and written to Excel Spreadsheet files. Optionally, the push pipe may specify a drilldown view which may in turn specify an Excel template. Optionally, the file exporter may specify an Excel Template which supersedes any template specified on a drilldown view. If an Excel template is specified, each output file is generated by copying the Excel template file and overwriting the values in the first worksheet. In this case, the type of file generated is the same as that of the template. If no Excel template is specified, each output file is generated by creating a new, empty file and writing values to the first and only worksheet. In this case, the type of file generated is determined by the extension generated by the the File Name Expression field:
|
Excel Spreadsheet (Multiple Inputs) | Data will be read from all input pipes and written to Excel spreadsheet files. At least one input pipe must be a push pipe. The Excel Template Expression must evaluate to the name of an Excel template file. The Excel template must be annotated with instructions to the exporter to insert data from any of the input pipes into specific ranges of cells. See File Exporter Excel Multi-input. |
HTML File | Data will be read from a single push pipe and written to HTML files. Optionally, the push pipe may specify a Drilldown View which may in turn specify an Excel template. Optionally, the file exporter may specify an Excel Template which supersedes any template specified on a drilldown view. If an Excel template is specified, each output file is generated by copying the Excel template file, overwriting the values in the first worksheet, then writing the first worksheet out as HTML. If no Excel template is specified, each output file is generated by creating a new, empty Excel file, writing values to the first and only worksheet, then writing that worksheet out as HTML. |
...
- Windows
- Unix
- Other
...
This field is only available if Line Separator Style = Other. Allows a custom new line separator to be entered. A sequence of multiple characters is allowed. The characters entered may be the literal characters or a sequence from the table below which may be useful where the required separator character is not valid to be stored in the database.
Sequence | Description |
---|---|
\t | Tab |
\n | Newline |
\r | Carriage return |
\f | Formfeed |
\u + hexadecimal code | Unicode character specified by the hexadecimal code |
...
If Type is Excel Spreadsheet or HTML File, this is the name of the Excel template to be used.
...
Send By Email
In this section you can set up an automated email to be sent when a file is exported, optionally with the exported file attached.
If an input multiplier expression is provided for this exporter then several files may be produced and each file may be assigned to several recipients. The subject and body expressions may also evaluate to different values each time (for example if _inputMultiplier is included in the expression). In this case PhixFlow will try to generate as few emails as possible by applying the following rules.
For each recipient identify the files to be sent to that recipient. If the subject and body message calculated for each file is the same then generate a single email and attach all files to that email. If the subject and body messages for each file are different then create one email for each subject and body message pair and attach to each email all the files for which the subject and body expression evaluated to the same subject and body message.
Emails are generated in an outbound queue and actually sent by a separate email demon process. If it is not possible to send emails immediately, e.g. because the email server is down, the email demon process will try to re-send periodically until either it succeeds or until a timeout period has passed.
Extra buttons:
...
...
Bring up the list of users configured in PhixFlow. A user can be selected from this list and dragged into the list of email recipients.
...
This expression is evaluated to give a list of external files that should be be attached to the email.
These files are created outside PhixFlow, and may or may not exist when the File Exporter runs. If the files don't exist, the generated email will be held in the output queue until either they are created by some external process, or a timeout period has passed.
...
Zip File
...
This specifies whether or not the attached file(s) will be zipped.
This option only appears when the option to Attach File is selected or Future Attachments Expression is set.
...
User Recipients
A list of email recipients. The rules to determine whether each recipient will be sent the email are configured in the form User Notification Rule. For each rule, in the list, the following fields are shown:
...
Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
...
...
...
...
...
...
...
...
...
Form: Set Encryption Parameters
On this tab you can set whether exported files are encrypted, along with the encryption parameters and the password which must then be used to open the files.
Encryption only applies to zipped email attachments.
...
The following Encryption Types are supported:
Type | Description |
---|---|
Blank | If the Encryption Type is blank, then the file will not be encrypted. |
Standard Zip | Standard ZIP 2.0 encryption is the encryption type that is accepted by most applications, and is the weakest supported encryption type. |
AES 128-bit | All variants of AES encryption are stronger than Standard Zip encryption, but AES encryption is accepted by fewer applications. AES 128-bit is the weakest type of AES encryption supported. |
AES 256-bit | AES 256-bit is the strongest type of AES encryption supported. |
...
The password that must be supplied in order to open any exported zipped files.
When setting the password, you should make a note of the password used and communicate it separately to the recipients of the emails to be sent out. It is not possible to display the current password.
...
See Also
...