Adding Parsers and Generators

The File provider allows you to send data from a csv file and receive data into a csv file through synchronizations. To read and write the csv file contents in the source and destination applications respectively, Gateway has been equipped with parsers and generators.

Add a parser or a generator only if you choose to set up a synchronization to have the data read from or written into a csv, xls, or an xlsx file for specific objects and fields. Otherwise, use the Default Parser to read any object and any field in Gateway, or the Default Generator to write any object and field in Gateway.

Parsers enable Gateway to read the contents of a csv or Excel (xls /xlsx) file. The following parsers have been delivered in Gateway:

To use a parser in a synchronization, you must set up:

Generators enable Gateway to write and format data into a csv file. The following generators are delivered in Gateway:

To use a generator in a synchronization, you must set up:

Prerequisite

A File deployment has been added to support csv, xls, or xlsx file format.

To add a parser or generator:

  1. Sign in to Primavera Gateway as an administrator or developer.
  2. In the sidebar, select Configuration.
  3. Select the File Converters tab.
  4. Select Add... and enter the following information in the File Converter wizard:
    • Name: Enter a distinct name for the file parser being added.
    • Type: Select the type of file converter being created. Choices include: Parser and Generator.
    • Description: Enter a short description of the purpose of the parser or generator being created.
    • Script: Enter the Groovy code to support specific provider objects in the parser or generator.
  5. Select Validate to ensure the Groovy syntax contains no errors.
  6. Select Save.

    The new parser or generator is now listed in the File Converters tab.

Tips:

Step me through...

Adding a Role Parser: Example

Adding a Role Generator: Example



Legal Notices | Your Privacy Rights
Copyright © 2013, 2022

Last Published Thursday, October 6, 2022