SlideShare a Scribd company logo
FILE ON MULE
Well we can do it 2 ways :-
• By stopping the flow at the end
• By stopping the connector at the end
So, in this slide we will be doing the first option :-
By stopping the flow at the end
Let us we have following Mule flow:-
Here you can see we are using Groovy component at the end. Now what this Groovy
component will be doing is it will stop the flow at the end using the following code :-
muleContext.registry.lookupFlowConstruct(‘Flow name').stop()
The corresponding Mule flow will be as follows:-
You can see here Groovy component is stopping the flow once the file has been read.
Once the file is read no more files will be read from inbound endpoint
Now if we start our application we will find that the file connector has picked up the
current file from the inbound folder and have stopped. That means if we place files
again in the inbound folder it will not work anymore :-
We can see here the fileshave been placed successfully in the outbound
folder.
Now no more files will be picked
In my next slide I will bring some other techniques in Mule implementation .
Hope you have enjoyed this simpler version.
Keep sharing your knowledge and let our Mule community grow 

More Related Content

PPTX
Caching and invalidating with managed store
PPTX
Simple groovy example in mule
PPTX
Accessing Mule variables in groovy
PPTX
Groovy example in mule
PPTX
Process file one after another
PPTX
Groovy with Mule
PPTX
Compressing & decompressing in mule
PPTX
SmpleGroovyexampleinmule
Caching and invalidating with managed store
Simple groovy example in mule
Accessing Mule variables in groovy
Groovy example in mule
Process file one after another
Groovy with Mule
Compressing & decompressing in mule
SmpleGroovyexampleinmule

What's hot (14)

PPTX
Cache for community edition
PPT
Simple Java component in Mule
PPTX
Holding a mule flow
PPTX
Mule esb db_1
PPTX
Mule esb db_2
PPTX
Groovy in Mule
PPTX
Mule message enricher
PPTX
Mule quartz
PDF
Understanding real world concurrency bugs in go
PDF
Understanding real world concurrency bugs in go (fixed)
PPTX
Scatter and gather in mule
PPTX
Accessing jms in mule using groovy
PDF
testing1
PPTX
Input and output flow using http and java component
Cache for community edition
Simple Java component in Mule
Holding a mule flow
Mule esb db_1
Mule esb db_2
Groovy in Mule
Mule message enricher
Mule quartz
Understanding real world concurrency bugs in go
Understanding real world concurrency bugs in go (fixed)
Scatter and gather in mule
Accessing jms in mule using groovy
testing1
Input and output flow using http and java component
Ad

Viewers also liked (20)

PPTX
Mule functional, blackbox, unit testing
PPT
Mule microsoft environment
PPTX
Mulesoft idempotent Message Filter
PDF
Attested Degree
PPTX
Researchmethodolgy by Eng:ahmed Ali Ahhmed
PDF
How to make ... Cincopa
PPTX
Mulesoft vm transport reference
PDF
Pdfteste
PDF
Estratégia api e design
DOC
ALESSIA CARNEVALI en
PPT
Implementing an Esb using Mule
PDF
Slidely how to
PPTX
Creating restful api using mule esb
PDF
Διαδερμική Σπονδυλοπλαστική
PPTX
Pilandok report
PDF
Panel Informativo
PPTX
Using maven with mule
DOC
ανακοινωση
PPT
Odontologikh exetash
DOCX
Naging sultan si pilandok
Mule functional, blackbox, unit testing
Mule microsoft environment
Mulesoft idempotent Message Filter
Attested Degree
Researchmethodolgy by Eng:ahmed Ali Ahhmed
How to make ... Cincopa
Mulesoft vm transport reference
Pdfteste
Estratégia api e design
ALESSIA CARNEVALI en
Implementing an Esb using Mule
Slidely how to
Creating restful api using mule esb
Διαδερμική Σπονδυλοπλαστική
Pilandok report
Panel Informativo
Using maven with mule
ανακοινωση
Odontologikh exetash
Naging sultan si pilandok
Ad

Similar to Handle File on mule (20)

PPTX
Simple groovy example in mule
PPTX
Simple groovy example in mule
PPTX
Simple groovy example in mule
PPTX
Simple groovy example in mule
PPTX
Simple groovy example in mule
PPTX
Groovy example in mule
PPTX
Groovy with mule
PPTX
Groovy with mule
PPTX
Deploying and running in mule standalone
PPTX
Deploying and Running in Mule
PPTX
Deploying and running in mule standalone
PPTX
Deploying and running in mule standalone
PPTX
Deploying and running mule standalone
PPTX
Deploying and running in mule standalone
PPTX
Running mule standalone
PPTX
Scatter gather in mule
PPTX
Scatter gather in mule
PPTX
Scatter gather in mule
PDF
Step by Step Guide on Lazy Loading in Angular 11
PPT
Slack connector with in MULE
Simple groovy example in mule
Simple groovy example in mule
Simple groovy example in mule
Simple groovy example in mule
Simple groovy example in mule
Groovy example in mule
Groovy with mule
Groovy with mule
Deploying and running in mule standalone
Deploying and Running in Mule
Deploying and running in mule standalone
Deploying and running in mule standalone
Deploying and running mule standalone
Deploying and running in mule standalone
Running mule standalone
Scatter gather in mule
Scatter gather in mule
Scatter gather in mule
Step by Step Guide on Lazy Loading in Angular 11
Slack connector with in MULE

More from Son Nguyen (20)

PPTX
Wsdl connector introduction
PPTX
Android intergrate with mule
PPTX
Mule flow overview
PPTX
Mule flow and filter
PPTX
Handle exceptions in mule
PPT
Spring security integrate with mule
PPTX
Message processor in mule
PPTX
Expression language in mule
PPTX
Mule with data weave
PPTX
Using spring scheduler mule
PPTX
Composite source in bound and out-bound
PPT
Batch job processing
PPTX
Using message enricher
PPT
Finance connectors with mule
PPT
Google drive connection
PPTX
Using properties in mule
PPT
Mule integrate with microsoft
PPTX
Jms queue
PPT
Anypoint connectors
PPTX
Mule esb basic introduction
Wsdl connector introduction
Android intergrate with mule
Mule flow overview
Mule flow and filter
Handle exceptions in mule
Spring security integrate with mule
Message processor in mule
Expression language in mule
Mule with data weave
Using spring scheduler mule
Composite source in bound and out-bound
Batch job processing
Using message enricher
Finance connectors with mule
Google drive connection
Using properties in mule
Mule integrate with microsoft
Jms queue
Anypoint connectors
Mule esb basic introduction

Recently uploaded (20)

PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
Cloud computing and distributed systems.
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Approach and Philosophy of On baking technology
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Spectroscopy.pptx food analysis technology
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
cuic standard and advanced reporting.pdf
Network Security Unit 5.pdf for BCA BBA.
sap open course for s4hana steps from ECC to s4
Reach Out and Touch Someone: Haptics and Empathic Computing
Chapter 3 Spatial Domain Image Processing.pdf
Cloud computing and distributed systems.
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Advanced methodologies resolving dimensionality complications for autism neur...
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Approach and Philosophy of On baking technology
Mobile App Security Testing_ A Comprehensive Guide.pdf
Programs and apps: productivity, graphics, security and other tools
“AI and Expert System Decision Support & Business Intelligence Systems”
The Rise and Fall of 3GPP – Time for a Sabbatical?
Review of recent advances in non-invasive hemoglobin estimation
Spectroscopy.pptx food analysis technology
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Encapsulation_ Review paper, used for researhc scholars
cuic standard and advanced reporting.pdf

Handle File on mule

  • 2. Well we can do it 2 ways :- • By stopping the flow at the end • By stopping the connector at the end
  • 3. So, in this slide we will be doing the first option :- By stopping the flow at the end
  • 4. Let us we have following Mule flow:- Here you can see we are using Groovy component at the end. Now what this Groovy component will be doing is it will stop the flow at the end using the following code :- muleContext.registry.lookupFlowConstruct(‘Flow name').stop()
  • 5. The corresponding Mule flow will be as follows:- You can see here Groovy component is stopping the flow once the file has been read. Once the file is read no more files will be read from inbound endpoint
  • 6. Now if we start our application we will find that the file connector has picked up the current file from the inbound folder and have stopped. That means if we place files again in the inbound folder it will not work anymore :- We can see here the fileshave been placed successfully in the outbound folder. Now no more files will be picked
  • 7. In my next slide I will bring some other techniques in Mule implementation . Hope you have enjoyed this simpler version. Keep sharing your knowledge and let our Mule community grow 