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

File listeners in taskflows

File listeners in taskflows

You can use a file listener in a taskflow when the file listener is configured to listen to connections.
You can use a file listener in a taskflow for the following use cases:
To invoke a taskflow through a file listener
You can invoke a taskflow through a file listener with the connector source type.
Within the taskflow, define the binding type as
Event
and select the file listener as the event source. When you publish the taskflow, the taskflow subscribes to the file listener that is defined in it. When a file event occurs, the file listener invokes the taskflow.
For example, if you configure the file listener to listen for new files on a folder, the file listener invokes the associated taskflow each time a new file arrives in the specified folder.
To orchestrate taskflow execution through file events
You can orchestrate taskflow execution through file events by using the File Watch Task step in a taskflow.
You can add a File Watch Task step to a taskflow to listen to files in a defined location and monitor file events. In the File Watch Task step, you can select an existing file listener with the connector source type. You can use file events to orchestrate taskflow execution.
For example, you can wait for a file to arrive at a particular location and then consume the file in a subsequent step.


Updated August 03, 2020