My mule config file contains the below flow:
<flow name="HTTP input1">
<ftp:inbound-endpoint user="username" password="secret" host="host" path="location" port="21">
<file:filename-wildcard-filter pattern="." />
</ftp:inbound-endpoint>
<file:outbound-endpoint path="E:/Mule/Inbound" outputPattern="#[header:originalFilename]" >
</file:outbound-endpoint>
</flow>
I'm able to move the files but what I need is to read out the file content and based on that content place it in specific directory.
For example if my file content has "Vendor1" then it should place the file under Vendor1. FYI: Vendor1 is not static. It may Vendor1000. Any ideas on this?
What you want to do is:
Something like: