-
Notifications
You must be signed in to change notification settings - Fork 8
Listeners: File
The FILE Listener
The FILE listener node is used to implement file oriented flows. It listens for the given file or file patterns and starts the flow when the file is detected.
It should be noted the file listener does not read the file. It only injects a message and starts the flow when the file matching is detected.
The code block below documents the format for the FILE Listener node.
"listener": {
"type":"file",
"isMessageGenerator": true,
"path":"c:/test/in/*^GSPC.csv",
"donePath":"c:/test/processing"
}
The path
property is the file to watch for. It can be a complete file path or a file name pattern. The donePath
is the directory to which the file is moved to, once it has been detected, to avoid duplicate detection.
If the ASB nodes are running in an HA cluster, then the path should probably be on a shared path, for example an NFS mount. The file node requires both read and write permissions for the files, as it moves them once they are detected.
The property isMessageGenerator
must be set to true for this node.
(C) 2018 - 2021 TekMonks