Skip to main content
Question

Is there a way to limit the directory monitoring automation to fire when the files i am interested in changes?

  • August 14, 2020
  • 3 replies
  • 15 views

jurgenmack
Contributor
Forum|alt.badge.img+9

I am monitoring several directories that have multiple files in them. Whenever any file changes my automation runs. Example Directory contains the files that make up a shape file. The automation will fire for every file in the directory that changes.(5)

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2077 replies
  • August 14, 2020

Hi @jurgenmack​  I suggest you to include in your Workspace a FeatureWriter to hold the name and quantity of times the files changes ( maybe xls file ).

 

Use the transformer for compare name files ( by Directory * Excel file ) using FeatureMerger. Generate a count attribute ( Counter ).

By last , use the transformer Tester = _count <= 5.

 

Thanks,

Danilo


davtorgh
Contributor
Forum|alt.badge.img+11
  • Contributor
  • 105 replies
  • August 14, 2020

@Hi @jurgenmack​ ,

 

I'm not sure I got it righ, but the watch directory trigger is designed to kick off an automation when one the monitored files changes and does exactly what you don't want to do (almost sometimes). Why should one of the file that make up a shapefile change?

What about trying a different strategy? ;-)

 

Hope that helps!


itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • 1442 replies
  • August 18, 2020

I just had a case like that and my solution was to use a path and directory reader in the workspace that is triggered, configured to the files I wanted monitored.

Hope this helps.