SlideShare a Scribd company logo
DATABASE EXAMPLE
AGENDA
• Introduction
• Definition
• Example
• Running
• Testing
• Reference
Introduction
Here I will show you how to read records from Oracle database and
write them in file using mule batch job.
Definition
Batch Processing at a Glance
A batch job is a top-level element in Mule which exists outside all Mule flows. Batch jobs split large
messages into records which Mule processes asynchronously in a batch job; just as flows process
messages, batch jobs process records.
A batch job contains one or more batch steps which, in turn, contain any number of message
processors that act upon records as they move through the batch job. During batch processing, you
can use record-level variables (recordVars) and MEL expressions to enrich, route or otherwise act
upon records.
A batch job executes when triggered by either a batch executor in a Mule flow or a message source
in a batch-accepting input; when triggered, Mule creates a new batch job instance. When all records
have passed through all batch steps, the batch job instance ends and the batch job result is
summarized in a report to indicate which records succeeded and which failed during processing.
Example
Message Flow
Example
XML
Run the Application
Testing
Logs
RESULT
New file got generated.
DB FILE
Reference
https://docs.mulesoft.com/mule-user-guide/v/3.7/batch-processing
https://docs.mulesoft.com/mule-user-guide/v/3.7/database-connector
THANK YOU

More Related Content

Database example