Hi all,

I’m working on a NiFi flow (v1.13.2) where I want to fetch a file from a 
Windows file share and process it. I want to have as much certainty as possible 
that I will not lose files. They contain important data and losing them might 
have financial consequences. In order to provide this, I want to have them on 
the file share during the entire NiFi flow processing in specific directories 
which indicate the state of processing. This so people from operations can 
easily lookup this state without requiring access to NiFi itself.

I have folders called

  *   Export
  *   Processing
  *   Processed
  *   Error

A file will be picked up from the ‘Export’ folder. When it has been picked up 
and processing is being done, I want the file to be in the ‘Processing’ folder. 
After processing is complete, I want to move the file to either the ‘Processed’ 
or ‘Error’ folder. I want to prevent a situation where the file is only present 
in the NiFi content repository and not on the Windows file share.

In order to do this, it appears I have the PutSmbFile and GetSmbFile processors 
available, but using these alone, it seems my suggested scenario is not 
straightforward to implement. Neither processor seems to support moving a file 
or deleting a specific file on command.

Does anyone have a suggestion on how this can be implemented, preferably 
without requiring the ‘execute code’ permission? Something like a DeleteSmbFile 
processor would be nice to have.

With kind regards and thanks in advance for any feedback!

Maarten Smeets
Principal Consultant

[cid:[email protected]]

Reply via email to