- On the New tab, in the File location section, click Files on repository.
- In the Configuration section, select the source repository:
- To select one of the predefined repositories, click the Repository configuration field, press the Down Arrow key, and choose a repository.
- To create a repository, click the Target icon to the right of the Repository Configuration field, and then perform Creating a repository.
- In the Path section, select how you want to define the files to
import or export:
Choices Actions Define a single file or a range of files
- Select Use a file path to import or export data.
- In the File path field, enter the file location.
When importing data, you can match multiple files in a folder by using an asterisk (*) as a wild card character.When exporting data, you can define a file name that consists of a prefix and an optional date and time pattern by adding a Java SimpleDateFormat string to the file path. The SimpleDateFormat does not support the following characters: "?*<>|:When a file is created, a unique ID is appended to the file name to ensure file uniqueness.
Define multiple files that you list in a manifest file
- Select Use a manifest file to import data.
For manifest files, use the following
- In the Manifest file path field, enter the location of
the manifest file.
- Optional: Click Preview file.
- In the Data protection section, select Enable data
protection checkbox and provide the Pretty Good Privacy (PGP) keys to
encrypt and decrypt files:
While providing the PGP keys, use the global resource settings syntax:
- In the Public key reference field, enter the public key required to encrypt files, for example when exporting data.
- In the Private key reference field, enter the private key required to decrypt files, for example when importing data.
- Optional: In the Passphrase reference field enter the passphrase to decrypt files.
- Optional: If the file is compressed, in the File configuration section,
select Enable file compression, and then select the
Compression type.The supported compression types are
- Optional: To provide additional file processing for read and write operations, such as encoding
and decoding, define and implement a dedicated interface:
For more information on the custom stream processing interface, see Requirements for custom stream processing in File data sets.
- Select Enable custom stream processing.
- In the Java class with reader implementation field, enter the fully qualified name of the java class with the logic that you want to apply before parsing.
- In the Java class with writer implementation field, enter the fully qualified name of the java class with the logic that you want to apply after serializing the file, before writing it to the system.
- From the File type drop-down list, select the type of file that you want to import or export with this data set, CSV or JSON.
- Optional: For CSV files, to update the settings automatically, click Configure automatically, and then go to step 12.
- For CSV files, update additional file settings:
- Specify if the file contains a header row by selecting the File contains header checkbox.
- In the Delimiter character list, select a character separating the fields in the selected file.
- In the Supported quotation marks list, select the quotation mark type used for string values in the selected file.
- For CSV and JSON files, update date and time settings:
- In the Date Time format field, enter the pattern
representing date and time stamps in the selected file.The default pattern is: yyyy-MM-ddHH:mm:ss
- In the Date format field, enter the pattern representing
date stamps in the selected file.The default pattern is: yyyy-MM-dd
- In the Time Of Day format field, enter the pattern
representing time stamps in the selected file.The default pattern is: HH:mm:ss
- In the Date Time format field, enter the pattern representing date and time stamps in the selected file.
- For CSV files, in the Mapping tab, modify the number of mapped
- To add a CSV file column, click Add mapping.
- To remove a CSV file column and the associated property mapping, click Delete mapping for the applicable row.
- For CSV files, on the Mapping tab, check and complete the
mapping between the columns in the CSV file and the corresponding properties in Pega Platform:
- To map an existing property to a CSV file column, in the Property column, press the Down Arrow and choose the applicable item from the list.
- For CSV files with a header row, to automatically create properties that are not in Pega Platform and map them to CSV file columns, click Create missing properties. Confirm the additional mapping by clicking Create.
- To manually create properties that are not in Pega Platform and map them to CSV file columns, in the Property column, enter a property name that matches the Column entry, click the Target icon, and configure the new property. For more information, see Creating a property.
- Confirm the new File data set configuration by clicking Save.