runtime icon indicating copy to clipboard operation
runtime copied to clipboard

[FTP]install error on combination scheduler and FTP

Open Hooghof opened this issue 1 year ago • 3 comments

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: ^

Hooghof avatar Jul 03 '24 08:07 Hooghof

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&amp;charset=utf-8&amp;delete=false&amp;recursive=false&amp;delay=10000&amp;initialDelay=1000&amp;passiveMode=true&amp;disconnect=true&amp;throwExceptionOnConnectFailed=true&amp;consumer.bridgeErrorHandler=true&amp;password=RAW(Unmwrnf4bM3RUwoG)&amp;include=RAW(.*.multi)&amp;move=RAW(processed)&amp;moveFailed=RAW(.error)&amp;scheduler=quartz2&amp;scheduler.cron=0+12+*+*+*+?&amp;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:

  1. Two routes
  2. Pollenrich
  3. To the second from into a two
  4. Use scheduled into one route

Preferable the last one. Seems to be a combination of scheduler + ftp

skin27 avatar Jul 08 '24 07:07 skin27

  • Another option is to set the scheduler (cron) directly into the FTP component (a separate tab)?
  • Do we need an inbound and outbound?

skin27 avatar Jul 08 '24 08:07 skin27

This needs some discussion as there are some open questions:

  1. Do we want to embed the cron functionality or still use it seperate?
  2. Do we want to use FTP schedule functionality or pollEnrich?
  3. Do we want to show this on a separate tab or not?
  4. Do we want to split into separate inbound / outbound?

skin27 avatar Jul 10 '24 07:07 skin27