camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amruta Jawlekar <amrut...@ignitiv.com>
Subject Re: Stop polling the input folder after the scheduled route is completed
Date Tue, 28 Feb 2017 04:54:44 GMT
Hi souciance,

My route code : 
		
		<camel:route id="inputFiles" routePolicyRef="startPolicy"
autoStartup="false">
			
			<camel:from
uri="file://{{inputfolder}}?move=../{{backupfolder}}/${date:now:yyyyMMdd_HHmmss}/${file:name}"/>
			<camel:choice>
				<camel:when>
					
					<camel:simple>${body} != null &amp;&amp; ${file:ext} ==
'dcn'</camel:simple>					
					<camel:to uri="direct:processFileImport" />
				</camel:when>
				<camel:when>
					
					<camel:simple>${body} != null &amp;&amp; ${file:ext} !=
'dcn'</camel:simple>
					<camel:to uri="file://unprocessed" />
				</camel:when>
			</camel:choice>			
		</camel:route>



--
View this message in context: http://camel.465427.n5.nabble.com/Stop-polling-the-input-folder-after-the-scheduled-route-is-completed-tp5794516p5794538.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message