Overview
Use a file exporter to create files with a format that matches that of the input stream.
To open a file exporter's settings tab, double-click on:
- the file exporter name in the repository
- the file exporter icon in a model.
borderColor | #7da054 |
---|---|
titleColor | white |
titleBGColor | #7da054 |
borderStyle | solid |
title | Sections on this page |
Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
If you do not specify an Excel Template, each output file is generated by creating a new, empty Excel file and writing values to the first and only worksheet, then writing that worksheet out as HTML.
When PhixFlow generates the file, it uses the line separator configured in System Configuration → Advanced section → Line Separator Style. If this is not set, Phixflow uses the default for the operating system on which the PhixFlow server is running.
You may want to generate an export file that uses a different line separator, for example if PhixFlow runs on Linux, but the file will be sent to Windows users. To set a different line separator, select:
- Windows
- Unix
- Other - see Line Separator Chars, below
Available when Line Separator Style is Other. Enter either a single character or multiple characters to use as a new line separator. The characters may be the literal characters or a sequence from the table below. These sequences are useful if the required separator character is not valid to be stored in the database.
Sequence | Description |
---|---|
\t | tab |
\n | newline |
\r | carriage return |
\f | form feed |
\u + hexadecimal code | unicode character specified by the hexadecimal code |
Available when Export File As is one of following:
Excel Spreadsheet (Multiple Inputs): enter an expressionthat evaluates to an Excel template.Available when the Export File As is Excel Spreadsheet.
- either the Output Directory,
- or the PDF Target Path.
PhixFlow reports on the PDF conversion in the console's PDF Chore tab.
Note |
---|
PhixFlow needs access to LibreOffice to convert Excel files to PDFs; see Configuring PDF Conversion. |
Available when the Export File As is Excel Spreadsheet.
Enter an expression that evaluates to a path where PhixFlow will save the PDF file.
Input Multiplier
- Log Input Multiplier Messages: when ticked, PhixFlow writes a message to the log every time the input multiplier value changes during an analysis run, whatever is set here.
Inputs
A list of pipes into the file exporter.
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. Create the list of recipients in the User Recipients section.
Emails are generated in an outbound queue and actually sent by a separate email demon process. If the email demon cannot send emails immediately, for example because the email server is down, the email demon process will try to re-send periodically until either it succeeds or the timeout period has passed.
If you specified an Input Multiplier for this file exporter, several export files may be generated. 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, generate a single email and attach all files to that email.
- If the subject and body messages for each file are different, generate one email for each subject and body message pair. Attach to each email all the files for which the subject and body expression evaluated to the same subject and body message.
Enter an expression that evaluates to 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
Available when Attach File is selected or Future Attachments Expression is set.
Specify whether or not the attached file(s) will be zipped.
- is not ticked the expression must evaluate to a plain text string.
- is ticked, the string can include HTML tags, for example to format text or provide links.
Encryption
Available when Send By Email section → Zip File is selected. Set whether exported zip attachments are encrypted, along with the encryption parameters and the password which must then be used to open the files.
The following encryption types are supported:
- leave 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 the weakest type of AES encryption supported and is accepted by fewer applications.
- AES 256-bit: AES 256-bit is the strongest type of AES encryption supported.
Email recipients must enter this password 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.
To change any of the data, double-click on the row to open the User Notification Rule tab.
Recipient Expressions
title | More... |
---|
For example to simply enter a list of email addresses, you can enter an expression such as:
["john.smith@acme.com","jane.doe@corp.com"]
The result of the expression must be:
- either a single plain text string that should be a valid email address
- or a list object that contains one or more strings, each of which must be a valid email address.