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?


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)

 

3 replies

danilo_fme
Evangelist
Forum|alt.badge.img+45
  • Evangelist
  • 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
  • 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+17
  • Supporter
  • 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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings