我已經定義了一個FTP出站文件,將文件移動到存檔文件夾,文件被存檔但永遠不會從源位置刪除。由於這個原因,相同的文件不斷得到一次又一次的處理。任何想法,爲什麼它不從源位置刪除?MULE ::無法在FTP位置存檔/刪除文件
<ftp:connector name="ftp-inbound" pollingFrequency="90000" validateConnections="true" doc:name="FTP"/>
<ftp:connector name="ftp-outbound" pollingFrequency="200000" validateConnections="true" doc:name="FTP"/>
<flow name="ftp_import_flow" processingStrategy="synchronous">
<ftp:inbound-endpoint host="localhost" port="21" responseTimeout="100000" doc:name="FTP" connector-ref="ftp-inbound" password="test123" path="/ftpSource/" user="admin">
<file:filename-regex-filter pattern="*.csv" caseSensitive="true"/>
<set-variable variableName="originalFileName" value="#[message.inboundProperties.originalFilename]" doc:name="Variable"/>
<logger message="FileName: #[originalFileName]" level="INFO" doc:name="Logger"/>
<reconnect frequency="100000" count="2"/>
</ftp:inbound-endpoint>
<byte-array-to-string-transformer name="byte_array_to_string" doc:name="Byte Array to String"/>
<ftp:outbound-endpoint host="localhost" port="21" connector-ref="ftp-outbound"
responseTimeout="10000" doc:name="FTP" password="test123" path="/ftpSource/archive/" user="admin">
<reconnect frequency="100000" count="2"></reconnect>
</ftp:outbound-endpoint>
<logger message="#[message]" level="DEBUG" category="ftp_flow" doc:name="Logger"></logger>
<scripting:component doc:name="ftp">
<scripting:script engine="Groovy" file="file.groovy"></scripting:script>
</scripting:component>
<logger message="#[payload]" level="DEBUG" doc:name="Logger" category="ftp_flow" />
<foreach doc:name="For Each">
<flow-ref name="insert_mysql_flow" doc:name="insert_mysql_flow" />
</foreach>
<logger message="File Process Successful" level="INFO" category="ftp_flow" doc:name="Log completion"/>
</flow>
您使用的是哪種版本的mule服務器? –