<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns="http://www.springframework.org/schema/integration/file"
	xmlns:si="http://www.springframework.org/schema/integration"
	xmlns:beans="http://www.springframework.org/schema/beans"
	xmlns:context="http://www.springframework.org/schema/context"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
			https://www.springframework.org/schema/beans/spring-beans.xsd
			http://www.springframework.org/schema/context
			https://www.springframework.org/schema/context/spring-context.xsd
			http://www.springframework.org/schema/integration
			https://www.springframework.org/schema/integration/spring-integration.xsd
			http://www.springframework.org/schema/integration/file
			https://www.springframework.org/schema/integration/file/spring-integration-file.xsd">

	<si:channel id="copyInput" />

	<si:channel id="moveInput" />

	<si:channel id="output">
		<si:queue capacity="1" />
	</si:channel>

	<outbound-gateway id="copier"
		request-channel="copyInput"
		reply-channel="output"
		directory="${java.io.tmpdir}/anyDir" />

	<outbound-gateway id="mover"
		request-channel="moveInput"
		reply-channel="output"
		directory="${java.io.tmpdir}/anyDir"
		delete-source-files="true"/>

	<si:chain input-channel="fileOutboundGatewayInsideChain" output-channel="output">
		<outbound-gateway id="file-outbound-gateway-within-chain" directory="${java.io.tmpdir}/anyDir" delete-source-files="true"/>
	</si:chain>

	<!--suppress SpringModelInspection -->
    <context:property-placeholder />

</beans:beans>
