Skip to main content

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)

 

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


@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!


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.


Reply