Posts

Showing posts from September, 2017

Batch Processing in Mule

Image
Batch processing is useful when you want to process records in bulk Here use case is to upload the student's records in bulk from CSV file to oracle database. 1. Create a mule project in studio and add Batch element to the canvas batch processing has three phases Input, Load and dispatch, Process, and OnComplete Input: It is an optional part of batch process configuration. This is the initiator for the batch process to start, it can be file adaptor which can poll for file or poll component which will look for any records from a database or inbound connectors. During this phase, no splitting or aggregation is performed by mule. it just acts upon the message payload. you can perform any transforms before the message gets feed into process phase. Load and Dispatch: This is the implicit phase of batch processing and you don't need to configure anything. It creates a batch job instance, This is a phase where mule splits the message into the record b...

Mule Flow Variables access across the flows

Image
           Variables set with a variable transformer persist only for the current flow and its sub flows and private flow, But if the flow crosses transport barrier the flow variable can not be accessed.            I have created a flow ' muleproject123Flow  ' which will call another private flow ' muleproject123Flow1 ' through HTTP request to check flow variable flow1 can be accessed in second flow. since the process crosses its transport level  muleproject123Flow1  can not access the flowvar1  result I modified the existing flow to call the  muleproject123Flow1   by flow reference element. this time the flow can access the flowvar1.