Hi,
This is my flow
Split Text -> Route on Attribute -> Merge Content (Value 0)
-> Merge Content (Value 1)
Split Text can generate any number of files.
Route on Attribute can only have two different attribute values to split (0 or 1). I only want Merge content to wait only for the flow files generated in it is route. For example if there are 5 flow files generated for Merge Content (Value 0), the merge content should wait for all the 5 files and merge it, similarly if there are 4 flow files generated for Merge Content (Value 1), the merge content should wait for all the 4 files and merge it.
Can you please suggest how I can implement this, findings so far,
1. Using Defragement: Will not work since both merge contents are waiting for all the flow files (fragment.identifier).
2. Using Bin-Packing: Kind of there on this solution, by adding correlation identifier (my attribute value which has 0 or 1). However it is not waiting for all the flow files that is going in that route.
Kindly let me know if you need additional details.
Thank you!
Yuva