- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
FetchFile not forwarding new fetched files but only files received in previous flow.
- Labels:
-
Apache NiFi
-
NiFi Registry
Created ‎12-15-2020 03:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- req.json
- a.csv
- b.csv
2. RouteOnAttribute -> Route req.json fle to left. a.csv and b.csv to right.
3. Notify -> when the req.json is received. notify it.
4. Wait -> waiting for req.json availabilty.
5. FetchFile -> on success of Wait, Fetch File a.csv.
6. PutFile -> write file req.json and a.csv to the target directory.
Created on ‎12-15-2020 05:06 AM - edited ‎12-15-2020 05:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@jainN Great looking flow. The modification you need is to simply remove json route which is combined with csv. Connect json route from Notify to FetchFile. You may need to adjust the wait/notify so that csv is released when you want. The wait/notify is often trickey, so i would recommend working with wait/notify until you understand their behavior. Here is a good article:
You may find other articles/posts here if you do some deeper research on Wait/Notify.
If this answer resolves your issue or allows you to move forward, please choose to ACCEPT this solution and close this topic. If you have further dialogue on this topic please comment here or feel free to private message me. If you have new questions related to your Use Case please create separate topic and feel free to tag me in your post.
Thanks,
Steven
