[FTP]install error on combination scheduler and FTP
it is not possible to install a flow that starts with a schedule component which is followed by an FTP component (doesn't matter if the option force inbound is whether or not used).
Test case Instance: next Tenant: Regression tests Flow: FtpMultipleFiles Version: 5
Version 3, which starts with an inbound flowlink works fine.
Error
| Name | FtpComponent |
|---|---|
| Flow type | Default flow |
| Message | Only one input is allowed per route. Cannot accept input: From[ftp:[email protected]/next/Regression Tests/test/in/?autoCreate=true&charset=utf-8&delete=false&recursive=false&delay=10000&initialDelay=1000&passiveMode=true&disconnect=true&throwExceptionOnConnectFailed=true&bridgeErrorHandler=true&password=RAW(Unmwrnf4bM3RUwoG)&include=RAW(..multi)&move=RAW(processed)&moveFailed=RAW(.error)&scheduler=quartz2&scheduler.cron=0+12++++?&scheduler.timeZone=Europe/Amsterdam] in route_03b98cb0-b97e-4604-9226-e3070901a638.xml, line 3, column 507: |
The FTP is as follows:
<route id="038f756f-a18c-4703-959e-f907476b4d01">
<from uri="direct:ID_6685054bc44fd0000b00018b_test_52f61a53-ba5c-4d3a-aa15-fba9878af5b2"/>
<from uri="ftp:[email protected]/next/Regression Tests/test/in/?autoCreate=true&charset=utf-8&delete=false&recursive=false&delay=10000&initialDelay=1000&passiveMode=true&disconnect=true&throwExceptionOnConnectFailed=true&consumer.bridgeErrorHandler=true&password=RAW(Unmwrnf4bM3RUwoG)&include=RAW(.*.multi)&move=RAW(processed)&moveFailed=RAW(.error)&scheduler=quartz2&scheduler.cron=0+12+*+*+*+?&scheduler.timeZone=Europe/Amsterdam"/>
<to uri="direct:ID_6685054bc44fd0000b00018b_test_038f756f-a18c-4703-959e-f907476b4d01"/>
</route>
This route contains two from statements. In Camel 2 this wasn't recommended, but still possible. Since Camel 3 only one from statement is allowed.
I don't know exactly what this double statement do functionally. We can either made it:
- Two routes
- Pollenrich
- To the second from into a two
- Use scheduled into one route
Preferable the last one. Seems to be a combination of scheduler + ftp
- Another option is to set the scheduler (cron) directly into the FTP component (a separate tab)?
- Do we need an inbound and outbound?
This needs some discussion as there are some open questions:
- Do we want to embed the cron functionality or still use it seperate?
- Do we want to use FTP schedule functionality or pollEnrich?
- Do we want to show this on a separate tab or not?
- Do we want to split into separate inbound / outbound?