Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6869023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:30:25+00:00 2026-05-27T03:30:25+00:00

My mule config file contains the below flow: <flow name=HTTP input1> <ftp:inbound-endpoint user=username password=secret

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T03:30:26+00:00Added an answer on May 27, 2026 at 3:30 am

    What you want to do is:

    • Extract the desired value from the file using a transformer (not an expression because none support your specific file format),
    • Use this property in the path attribute of the outbound endpoint.

    Something like:

    <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>
      <script:transformer name="stringReplaceWithParams">
        <script:script engine="groovy">
            <script:text>
              // here the payload variable should contain a byte[] from the remote FTP file
              // ... munch-munch the byte[] with Groovy to find the value to put in targetSubDir
              var targetSubDir = ...
    
              message.setOuboundProperty('targetSubDir', targetSubDir) 
              // return the payload unchanged, we just changed a message property
              return payload 
            </script:text>
        </script:script>
      </script:transformer>
      <file:outbound-endpoint path="E:/Mule/Inbound/#[header:targetSubDir]"
                              outputPattern="#[header:originalFilename]" />
    </flow>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Flow in MULE like below : <flow name=MetaService> <http:inbound-endpoint address=http://localhost:8000/jcore/meta transformer-refs=HttpParams
I have a Flow in MULE which contains a HTTP inbound and component class
I have a mule-config file where i have defined a http inbound to accept
I am attempting to create an inbound Mule endpoint that will receive Syslog messages
i am trying to decalre a spring bean on a xml (Mule config file),
I configure a flow in mule-config.xml based on the documentation( click here ). Here
I ran this Mule 3 file expecting that when I browse to http://localhost:9000 ,
I'm attempting to set up a config file for Mule ESB 2.2.1 that routes
Firstly, please take a look at a snippet in mule-config.xml : <model name=userModel> <service
org.mule.api.lifecycle.InitialisationException: Initialisation Failure: Configuration problem: Unable to locate NamespaceHandler for namespace [http://www.mulesource.org/schema/mule/core/2.1] Offending resource:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.