camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From boday <>
Subject Re: Making a route depend on multiple criteria
Date Wed, 15 May 2013 03:54:31 GMT
sounds like you could just explicitly invoke the 4th route (direct:route4) at
the end of the 3rd route and enrich the 4th route with the "hold" file...see

cwhistler wrote
> I need a way to create a Camel route that uses a file "from" endpoint but
> cannot start processing that file until some other things are complete. 
> So here's a simplified scenario just to provide an example:
> A camel route extracts data from a database and writes the records to a
> file on the file system.
> A second camel route has a file endpoint watching for the extract file. 
> When it is available it will transform the records in that file and write
> out a new file.  The original file will be moved to a "hold" folder.
> A third route watches for the transformed file to do something with it,
> maybe send it off the system somewhere.  When this one is done it will
> move the file to a "done" folder.
> A fourth route needs to process the "hold" file from the second route, but
> it cannot process this file until the transformed file has moved to the
> "done" folder.  So is there a way to make this fourth route dependent on
> both the "hold" and the "done" files?  It does not have to process the
> "done" file, it just can't do anything with the "hold" file until the
> third route is done.

Ben O'Day
IT Consultant -

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message