Comments and answers for "Run a workbench with Directory Watch" https://knowledge.亚搏在线safe.com/questions/59209/run-a-workbench-with-directory-watch.html The latest comments and answers for the question "Run a workbench with Directory Watch" Answer by jlutherthomas https://knowledge.safe.com/answers/59227/view.html

Hi@philippeb

1.
When setting up the Directory Watch Publication you can set it to run every hour and see if any files have been created in that folder.You will also get 1 topic message for every new file that appears in that folder.For every time that topic is triggered you can get a workspace to run.Just make sure that when you create a workspace subscription that will trigger off the same topic that you're publishing to with the directory watch.



2.
I don't believe that you can abort/skip workspaces that are scheduled to run.You can remove a schedule completely but not skip a scheduled run.You could always add this to the Ideas Exchange if you wanted.
What's available to do with schedules you could find in our REST API documentation: https://docs.safe.com/fme/html/FME_REST/apidoc/v3/#!/schedules

Mon, 04 Dec 2017 23:25:14 GMT jlutherthomas
Answer by lizsanderson https://knowledge.safe.com/answers/59226/view.html

Hi@philippeb, Happy to hear you are enjoying FME Server.Here is a tutorial series that should get you off and running using Directory Watch:

Tutorial: Directory Watch, particularly theDirectory Watch Publisher with Idle Time Delay (Advanced) (2017)will be useful for your examples.

To abort a scheduled workspace, I would suggest using a combination of the Directory Watch Reader, a tester (to test for the file you don't want) and a terminator, along with the workspace runner.

Let me know if you have any questions regarding the articles, you can comment on the articles directly.

-Liz

Mon, 04 Dec 2017 23:18:46 GMT lizsanderson
Answer by danilo_fme https://knowledge.safe.com/answers/59218/view.html

Hi@philippeb,

Has somes interesting links about Directory Watch:

Thanks,

Danilo

Mon, 04 Dec 2017 22:38:50 GMT danilo_fme