SlideShare a Scribd company logo
By Anirban Sen Chowdhary
Have you ever thought of processing multiple file sequentially through
File endpoint in Mule ??
Generally in a scenario where multiple files exists in the inbound folder,
all the files tends to move out together through the file inbound
endpoint using multiple thread.
So, how can we restrict the files in a inbound folder where multiple files
exists , to process is a sequential manner , that is the files should be
picked one by one and will be dispatched one by one in outbound
folder ??
Let’s see how ….
Let us consider we designed a flow, a file inbound to pick the file and a
file outbound to dispatch the file to outbound folder.
Now the reason I kept a Groovy component is to slow the file processing
in the flow
Now, to configure our file inbound to pick one file at a time is to make
the flow processingStrategy="synchronous"
So, our Mule config will be as follows :-
You can see that the inbound endpoint is picking the file from the location
:- E:backuptest and putting it into the location E:backuptestnewfolder
.
Now, let’s start out Mule application and deploy it in the server.
Let’s keep 5 files in the inbound location as below :-
.
You can see there are 4 file present :- file1.txt, file2.txt, file3.txt, file4.txt
in the inbound location as below :-
.
Now, if we move to the outbound location E:backuptestnewfolder , we
will find files are getting dispatched one by one as below :-
Here file1.txt is deposited first
.
After few millisecond file2.txt is deposited in the same location
.
Now file3.txt is deposited in the same location
.
At the end finally file4.txt get dispatched in the same location
Now, you can see all the file has been dispatched one by one in the
location.
So, whenever you need to process one file after another in a sequential
manner with file inbound, just configure the flow
processingStrategy="synchronous“
And that’s it .. The files will be processed one after another sequentially
Hope you liked this small tricks in Mule.
If you have any similar tricks in Mule, please do share it with all and let
our Mule community grow
Happy coding 
Process file one after another

More Related Content

PPTX
Holding a mule flow
PPTX
Simple groovy example in mule
PPTX
Compressing & decompressing in mule
PPTX
Caching and invalidating with managed store
PPTX
Groovy example in mule
PPTX
Groovy with Mule
PPTX
Groovy in Mule
PPTX
SmpleGroovyexampleinmule
Holding a mule flow
Simple groovy example in mule
Compressing & decompressing in mule
Caching and invalidating with managed store
Groovy example in mule
Groovy with Mule
Groovy in Mule
SmpleGroovyexampleinmule

What's hot (17)

PDF
Netty - anfix tech&beers
PPTX
Handle File on mule
PPTX
Controlling multiple VMs with the power of Python
PDF
Play Framework
PPTX
Mule esb db_2
PDF
Flask With Server-Sent Event
PDF
Woo: Writing a fast web server @ ELS2015
PPTX
Mule esb db_1
PDF
Woo: Writing a fast web server
PDF
Unity and WebSockets
PDF
Clack: glue for web apps
PPTX
Input and output flow using http and java component
PPTX
Implement server push in flask framework
PDF
Dexador Rises
PDF
JDO 2019: Serverless Hype Driven Development - Grzegorz Piotrowski
PDF
Building GUI App with Electron and Lisp
PPTX
Javascript asynchronous
Netty - anfix tech&beers
Handle File on mule
Controlling multiple VMs with the power of Python
Play Framework
Mule esb db_2
Flask With Server-Sent Event
Woo: Writing a fast web server @ ELS2015
Mule esb db_1
Woo: Writing a fast web server
Unity and WebSockets
Clack: glue for web apps
Input and output flow using http and java component
Implement server push in flask framework
Dexador Rises
JDO 2019: Serverless Hype Driven Development - Grzegorz Piotrowski
Building GUI App with Electron and Lisp
Javascript asynchronous
Ad

Viewers also liked (20)

PPTX
Message enricher in mule
PPTX
Mule message enricher
PPTX
Accessing Mule variables in groovy
PPTX
Sharing resources with mule
PPTX
Combing xml in Mule
PPTX
Delaying jms with mule
PPTX
Mule dynamic name space
PPTX
Splitting with mule part2
PPTX
Calling flow from another application
PPTX
Mapping and listing with mule
PPTX
Sending mail with attachment
PPTX
Dynamic file attribute
PPTX
Running mule from java
PPTX
Accessing jms in mule using groovy
PPTX
Mule with drools
PPTX
Calling flow from another application 2
PPTX
Web application with mule
PPTX
Xml to xml transformation in mule
PPTX
VM example in mule
PPTX
Groovy demo
Message enricher in mule
Mule message enricher
Accessing Mule variables in groovy
Sharing resources with mule
Combing xml in Mule
Delaying jms with mule
Mule dynamic name space
Splitting with mule part2
Calling flow from another application
Mapping and listing with mule
Sending mail with attachment
Dynamic file attribute
Running mule from java
Accessing jms in mule using groovy
Mule with drools
Calling flow from another application 2
Web application with mule
Xml to xml transformation in mule
VM example in mule
Groovy demo
Ad

Similar to Process file one after another (20)

PDF
Processing files sequentially in mule
PPTX
Mulesoft Using Groovy Component
PPTX
File connector
PPTX
File connector
PPTX
File Connector
PPTX
Setting filedynamically
PPTX
Elements in a muleflow
PPTX
File connector mule
PPTX
Elements in a mule flow
ODP
Mule scopes&error handling
PPTX
Understanding flows and subflows in mule
PPTX
Mule fundamentals
PPTX
File component in mule demo
PPT
Mule introduction
PPTX
Mule with quartz
PPTX
File component
 
PPTX
Mule File component
PPTX
File component
PPTX
File component in mule
PPTX
File component in mule
Processing files sequentially in mule
Mulesoft Using Groovy Component
File connector
File connector
File Connector
Setting filedynamically
Elements in a muleflow
File connector mule
Elements in a mule flow
Mule scopes&error handling
Understanding flows and subflows in mule
Mule fundamentals
File component in mule demo
Mule introduction
Mule with quartz
File component
 
Mule File component
File component
File component in mule
File component in mule

More from Anirban Sen Chowdhary (20)

PPTX
Change the game with Game changer
PPTX
Ring central desktop app overview
PPTX
Overview in ringcentral digital line
PPTX
Some basics with ring central
PPTX
Ring central and python
PPTX
RingCentral application development overview
PPTX
Cloze connect ringcentral
PPTX
Overview on ring central errors part 4
PPTX
Setting up your ring central sandbox in steps
PPTX
Overview on ring central errors: part 2
PPTX
Overview on ring central errors
PPTX
Call recording overview ring central
PPTX
Ring central engaging with amazon alexa
PPTX
How ring central sdk changing the game
PPTX
When ring central connect salesforce
PPTX
Mule 4 connecting ring central
PPTX
Ring central sdk
PPTX
Ring central with okta
PPTX
Ring central connecting salesforce overview
PPTX
Ring central call logs overview (part 2)
Change the game with Game changer
Ring central desktop app overview
Overview in ringcentral digital line
Some basics with ring central
Ring central and python
RingCentral application development overview
Cloze connect ringcentral
Overview on ring central errors part 4
Setting up your ring central sandbox in steps
Overview on ring central errors: part 2
Overview on ring central errors
Call recording overview ring central
Ring central engaging with amazon alexa
How ring central sdk changing the game
When ring central connect salesforce
Mule 4 connecting ring central
Ring central sdk
Ring central with okta
Ring central connecting salesforce overview
Ring central call logs overview (part 2)

Recently uploaded (20)

PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Approach and Philosophy of On baking technology
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Machine learning based COVID-19 study performance prediction
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Modernizing your data center with Dell and AMD
Network Security Unit 5.pdf for BCA BBA.
Mobile App Security Testing_ A Comprehensive Guide.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
NewMind AI Weekly Chronicles - August'25 Week I
Unlocking AI with Model Context Protocol (MCP)
Understanding_Digital_Forensics_Presentation.pptx
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Approach and Philosophy of On baking technology
Digital-Transformation-Roadmap-for-Companies.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Encapsulation_ Review paper, used for researhc scholars
Machine learning based COVID-19 study performance prediction
Building Integrated photovoltaic BIPV_UPV.pdf
Modernizing your data center with Dell and AMD

Process file one after another

  • 1. By Anirban Sen Chowdhary
  • 2. Have you ever thought of processing multiple file sequentially through File endpoint in Mule ?? Generally in a scenario where multiple files exists in the inbound folder, all the files tends to move out together through the file inbound endpoint using multiple thread.
  • 3. So, how can we restrict the files in a inbound folder where multiple files exists , to process is a sequential manner , that is the files should be picked one by one and will be dispatched one by one in outbound folder ??
  • 5. Let us consider we designed a flow, a file inbound to pick the file and a file outbound to dispatch the file to outbound folder. Now the reason I kept a Groovy component is to slow the file processing in the flow Now, to configure our file inbound to pick one file at a time is to make the flow processingStrategy="synchronous"
  • 6. So, our Mule config will be as follows :- You can see that the inbound endpoint is picking the file from the location :- E:backuptest and putting it into the location E:backuptestnewfolder
  • 7. . Now, let’s start out Mule application and deploy it in the server. Let’s keep 5 files in the inbound location as below :-
  • 8. . You can see there are 4 file present :- file1.txt, file2.txt, file3.txt, file4.txt in the inbound location as below :-
  • 9. . Now, if we move to the outbound location E:backuptestnewfolder , we will find files are getting dispatched one by one as below :- Here file1.txt is deposited first
  • 10. . After few millisecond file2.txt is deposited in the same location
  • 11. . Now file3.txt is deposited in the same location
  • 12. . At the end finally file4.txt get dispatched in the same location Now, you can see all the file has been dispatched one by one in the location.
  • 13. So, whenever you need to process one file after another in a sequential manner with file inbound, just configure the flow processingStrategy="synchronous“ And that’s it .. The files will be processed one after another sequentially
  • 14. Hope you liked this small tricks in Mule. If you have any similar tricks in Mule, please do share it with all and let our Mule community grow Happy coding 