Advertisement
Guest User

Untitled

a guest
Nov 14th, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. <ftp:connector name="FTP" doc:name="FTP">
  2. <service-overrides dispatcherFactory="CustomFtpMessageDispatcherFactory"></service-overrides>
  3. </ftp:connector>
  4.  
  5.  
  6. <file:connector name="File_inbound_point2" autoDelete="true"
  7. streaming="true" validateConnections="true" doc:name="File" />
  8. <file:connector name="File_out" autoDelete="false"
  9. outputAppend="true" streaming="true" dynamicNotification="true"
  10. validateConnections="true" pollingFrequency="${file.poolingfrequency}"
  11. doc:name="File" />
  12.  
  13. <flow name="ftp-patientregistret_MainFlow" initialState="started"
  14. processingStrategy="synchronous">
  15. <file:inbound-endpoint path="${file.input.path}"
  16. connector-ref="File_inbound_point" pollingFrequency="${file.poolingfrequency}"
  17. responseTimeout="10000" doc:name="File inbound point" />
  18. <set-variable variableName="CatalogsName" value="${ftp.output.path}#[message.inboundProperties.originalFilename]" doc:name="Variable"/>
  19. <logger
  20. message="#["nnTIMEPOOLING: ${file.poolingfrequency} / ${timepooling}nFILE Name: "+message.inboundProperties.originalFilename+"nFILE NAME out: "+message.outboundProperties.originalFilename+"nCatalogsName: "+flowVars.CatalogsName+"nn"]"
  21. level="INFO" doc:name="Logger" />
  22. <set-variable variableName="PayloadTemp" value="#[message.payloadAs(String)]"
  23. doc:name="Variable" />
  24. <ftp:outbound-endpoint host="${ftp.host}" port="${ftp.port}" path="${ftp.path}" user="${ftp.user}" password="${ftp.password}" connector-ref="FTP" outputPattern="#[flowVars.CatalogsName]" responseTimeout="10000" doc:name="Copy_to_FTP"/>
  25.  
  26. <set-payload value="#[flowVars.PayloadTemp]" doc:name="Set Payload" />
  27. <file:outbound-endpoint path="${file.output.path3}"
  28. connector-ref="File_out" responseTimeout="10000" doc:name="File_out" />
  29. </flow>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement