Split CSV in multiple messages and synchronize process after split
Hi,
I splitted my large CSV-File into multiple messages (cSpliiter --> with Expression "body().tokenize("\n")". Thats works fine! In each row I have an articleNumber and an event. I want to know how often a event is thrown for each articleNumber. I have a map with key "articleNumber" and the value is another map with key "<event>" and a value how often the event is thrown.
At least I want to store this information in a database.
My problem is: I have to wait until all rows of the CSV-file are read and after this I want to start to store the information in database. Is there a component that waits until all rows are read and go on when work is done?
Thanks for help!