on 2024 Jul 30 5:33 AM
Hello,
I am now testing "General Splitter" function in integration flow.
The scenario is very simple. We read file from a FTP server, and we do process splitter function, finally we pass the split file to 5 different folders in different FTP servers.
Suppose there's a CSV file with 10 rows being split, and we set up Line Break in the set up of General Splitter as "2", so we expect that there will be 5 files(=10/2) generated as the result of the process.
In this case, how do we assign which split file (there are 5 of them) goes to which FTP server? I suppose we should do the setting in the adapter?
And in the first place, without using Router (which we do not think should be used because we have to set up condition), there is no way for us to connect splitter to end message event and the receiver connected to end message event.
Furthermore, if we do not know how many rows there are in the input CSV file, meaning we do not know how many files will be split as the output, how do we do this kind of dynamical setting for general splitter and receiver adapter?
Thank you in advance.
Shin
Thank you. It worked!
For anyone who wonder how the file name was set.
>File_${header.CamelSplitIndex}.csv
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.