MULESOFT DEVELOPMENT - Interview
MULESOFT DEVELOPMENT - Interview
more information
How to access secure property inside dataweave?
By using p(‘secure::<property name>’) you can access the secure property defined as part of secure property
file in mule application – more information
How can you raise error explicitly in Mule flow/subflow?
By using the Raise Error component you can explicitly raise the error in between the flow more information
How can you handle errors in middle of the processing in MuleSoft?
You can use the Try block to handle the errors in between the flows, try block also support the transaction. By
using try block you can use the on-error continue or on-error propagate to handle the error more information
How to call Flow from inside a dataweave?
You can use dataweave lookup function to call flow from inside a dataweave It works in Mule apps that are
running on Mule Runtime version 4.1.4 and later It takes the flow’s name and an input payload as parameters.
For example, lookup(“flowname”, payload)
What is the difference between map, mapObject and pluck?
You can configure connectors to poll only from primary node @primaryNode Only which ignores the default
setting set by mule runtime engine
How will you implement caching in MuleSoft?
There are 2 ways to implement the caching in MuleSoft
1.
Use Object Store – more information
Use Cache scope to cache the Response – more information
If we wanted to process only one message at a time in mule flow how can we achieve that?
we can make a flow to process in single thread, there is an option to define the Max Concurrency you can
configure the same as 1 to process only one message at a time
DATAWEAVE
/*
*
This
is.
*
multi-
line.
*
comments
in.
*
DataWeave.
*/
How you will parse an XML with or without namespace in Dataweave? How you will retrieve the
attribute value
Please see – https://mulesy.com/xml-processing-in-dataweave
How you will convert string into Array and vice versa?
String to Array – https://mulesy.com/convert-string-to-array-in-dataweave-2-0
Array to String – https://mulesy.com/convert-array-to-string
5) What is fan-in?
Fan-in helps in taking a decision to continue flow execution. It be used in
combination with fan out.
6) What is a fan-out?
Fan out is primitive that can be used to input messages through the output
terminal once or more than one time. It can also be used as a combination
of both fan-out and fan-in.
7) Mention the features of Mule ESB
The features of Mule ESB are:
Endpoint lookup
Data handler
Message element setter
DB lookup
Service Invoke
Type filter
Stop
Sub Flow
Custom mediation fan-out
Fan-in
Even emitter
Header setters
Message logger
XSLT
BO MapMessage filter
Fail
Mule ESB
JBoss fuse ESB
Talend
They are used to implement behavior in service. It can be very simple, like
logging messages or invoking other services.
28) What is the use of Outbound Endpoint in MuleSoft?
Outbound Endpoint in MuleSoft is used to perform the following things:
Bridge
Validator
WS proxy
Simple service pattern
HTTP proxy
Transformation
Expression
Routing
Duplicate_Message
Source_Response
Timeout
Security
Connectivity
Validation
SOAP is the perfect medium that is developed for web service to talk
with client applications.
SOAP is a light-weight protocol which can be used for data
interchange between applications.
SOAP protocol can work any programming language based
applications on Windows and Linux platforms.
It does not require customization to run the web services built on the
SOAP protocol to work on the WWW.
54) Define Batch Jobs in Mule ESB
A batch job is an element in Mule that split large size messages into
records that process asynchronously in a batch job.