How to use fail function in Mulesoft- Part 1
This blog demonstrates the use of fail function in MuleSoft
In this blog we will demonstrate use of fail function in Mule 4:
Create a Mule Project in Anypoint Studio. Go to File->New->Mule Project
Name the project appropriately and select the Mule runtime to be used for execution.
The new project gets created and by default the control points to a mule configuration file where one can drag & drop different Mule Components to achieve the business requirement.
On the right-hand side there is a component palette where we have different modules and different operations under each module.
Drag & drop HTTP Listener on message flow. Double click on http listener component to complete he configuration. The listener component when dropped on message flow inherently becomes part of the mule flow. Mule flow is a core component which helps in orchestrating different mule components.
Click on + button in connector configuration & change the default port 8081 to a different one if it’s already occupied. Click on Ok.
Note : Remaining steps will be continued in Part2