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
&& ${file:ext} ==
'dcn'</camel:simple>
<camel:to
uri="direct:processFileImport" />
</camel:when>
<camel:when>
<camel:simple>${body} != null
&& ${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.