I have a situation where a big (100 mb) CSV file is placed at a location on FTP server. The sending party notifies about complete transmission of file using a small(1kb) .complete file. I want my flow to trigger when .complete file is placed. but as soon as .complete file is placed, i want to FTP GET the CSV as well. I found that i cannot have 2 inbound endpoints in one single mule flow. how is it then possible to read multiple inbound data sources in a single flow in mule? If for example, someone has to read two different files and construct an output file based on the input of the previous two, how can that be achieved?
0
votes
2 Answers
0
votes
In this case you need to write a custom component within your flow to retrieve the csv from the ftp server. You can use the run method of the FtpMessageReceiver code as an example for your component
0
votes
It should work with the FTP connector, but only if you use it as a "source"/inbound endpoint (first element of your flow). Check out the docs
https://docs.mulesoft.com/mule-user-guide/v/3.7/ftp-connector