Apache Nifi - use of Notify and Wait with unknown amount of files
I tried to find out on myself, but after days of trying I decided that I need help. My usecase is to concat splitted zip-files (FilaA.zip.001, 002, 003 - 00x) and I don't really know how many files will be delivered. The files are big and delivery takes time... The last file to be delivered is a notification-file "ready.txt"
My current workflow is like this:
- receive alle files
-extract number of zip-file (001-x) and build a priority (999-number of zip-file) of it
-move to a queue with a PriorityAttributePrioritizer
-extract max number of files (i.e. 7 from 007 - the file with priority 992)
-move files via notify processer to the wait processor

- in the wait processor I want to wait until the notfication-file arrived and deliver all the files in wait-queue

-after the the files will be concatenated with the MergeContent processor and unzipped.
My configuration works only one time. ... The second delivery with exact the same filenames as in the first delivery is directly moved to "success" and not into the wait queue...
What I am doing wrong ?


