Invoking a taskflow through a connector file listener
Invoking a taskflow through a connector file listener
You can invoke a taskflow through a connector file listener.
Within a taskflow, you can define the binding type as
Event
and select the connector file listener as the event source. When you publish the taskflow, the taskflow subscribes to the connector file listener that is defined in it. When a file event occurs, the connector file listener invokes the taskflow. For example, if you configure the connector file listener to listen for new files on a folder, the connector file listener invokes the associated taskflow each time a new file arrives in the specified folder.
You can monitor the execution of the connector file listener and the events that occur on each run job of the connector file listener. Connector file listener log entries are listed on the
File Transfer Logs
page in Monitor. The connector file listener logs show the name, size, last modified date and time, file path, event type, and event time.
Create a connector file listener and define the event that will invoke the taskflow.
Start or schedule the connector file listener.
The connector file listener must be running when you publish the taskflow.
Create a taskflow.
Click the Start step of the taskflow.
Click the
Start
tab.
In the
Binding
field, select
Event
.
In the
Event Source Name
field, select the connector file listener that you configured.
Data Integration creates an input field to store details of the files that arrived, were updated, or were deleted as part of the connector file listener event. The input field takes the name of the connector file listener.
Add steps to the taskflow as needed.
Save and publish the taskflow.
To unsubscribe from the connector file listener, unpublish the taskflow.