Table of Contents

Search

  1. Preface
  2. Components
  3. Business services
  4. File listeners
  5. Fixed-width file formats
  6. Hierarchical schemas
  7. Intelligent structure models
  8. Mapplets
  9. Saved queries
  10. Shared sequences
  11. User-defined functions

Components

Components

Configuring file listener for a connector source type

Configuring file listener for a connector source type

When you select the source type as connector in the file listener details, the file listener listens to the connection.
For more information about configuring file listener details, see Configuring a file listener.
  1. Configure the following parameters to define the connection:
    Parameter
    Description
    Connection Type
    Type of the connection to which the file listener listens.
    Connection
    Connection to which the file listener listens.
  2. Configure the following parameters to define listener rules:
    Parameter
    Description
    Folder Path
    Path to the folder to which the file listener listens.
    Pattern Type
    Determines the pattern of the file name to which the file listener listens. Select one of the following patterns:
    • Wildcard
    • Regex
    File Pattern
    File name pattern to which the file listener listens.
    • Wildcard. Use wildcard patterns of file name.
    • Regex. Use a regular expression to match the file name pattern.
      If you select regex pattern type, consider the following examples:
      • Use the following syntax to listen to all files except for files whose name contains out, foo, and baz.
        ^(?!.*(?:out|baz|foo)).*$ all except
      • Use the following syntax to listen to all files that have an extension of doc,docx, pdf.
        ([a-zA-Z0-9\s_\\.\-\(\):])+(.doc|.docx|.pdf)$
      • Use the following syntax to listen to all text file except for files whose name contains
        out.txt
        .
        ^(?!out).*\.txt$
    Check for files in sub-folders
    Indicates whether the file listener checks for files in sub-folders under the folder to which it listens.
    Notify when file
    Determines when the file listener must send notifications to the services that are registered to it:
    • Arrived. Sends notifications when files arrive at the folder to which the file listener listens.
    • Updated. Sends notifications when files in the folder to which the file listener listens are updated.
    • Deleted. Sends notifications when files in the folder to which the file listener listens are deleted.
    You can select as many options as required.
    Stop checking if rules are met
    The file listener stops listening to the folder when the listener rules are met. For example, if you configure the file listener to send notifications when the files in the folder to which it listens are deleted, the listener stops listening to the folder when the first event of file deletion occurs in the folder.
    If this option is not selected, the file listener notifies the registered application on events and continues to listen for subsequent events.
    Check File stability
    The file listener verifies that the entire file is copied to the folder to which it listens before notifying the registered services.
    Select this option if you transfer large files, where the process of writing the files to the folder is not instant.
    Notify if files exist on first run
    When the file listener runs for the first time, it sends a notification if files exist in the folder to which it listens.


Updated August 03, 2020