Search code examples
intersystems-cacheintersystemsintersystems-ensembleensemble-learning

File Listener in Ensemble/CachObjectscript


I am new to ensemble. I would like to know, whether there is any thing like filesystemwatcher in Cache/Ensemble. (Note : filesystemwatcher is in .Net)

My requirement is as follows, My Ensemble production (Business Process) will drop a file in a folder, in that folder a windows service will process the file and replace this file with a new file.

My Business process should wait till the new file is available in the folder and start resuming the process.

Please let me know if this is possible in Ensemble.


Solution

  • Yes - the File Inbound Adapter is most likely what you are looking for. See http://docs.intersystems.com/ens20141/csp/docbook/DocBook.UI.Page.cls?KEY=EFIL_inbound for details.