Handling Error in MuleSoft Composer
Arif Ali Mansuri
Integration Engineer at NTT DATA || MuleSoft Mentor || 4X MuleSoft Certified || Salesforce || MuleSoft Composer || Apisero Inc.
Till now the biggest concern of every Mulesoft composer developer is how we can handle errors in composer flows. So, Now wait is over for handling errors in the composer is live now.
I have great news for you all. In this article I will go through the latest release of Mulesoft having new Actions for composer flow's i.e. THE ERROR HANDLER (Beta). With this we can handle errors for composer flows.
Error Handler (Beta) is available irrespective whether Mulesoft composer is standalone or it in is managed packages under Salesforce Orgs.
Let's see, What’s New
An error handler (beta) is now available. You can use this feature to track down connection or error causes at certain steps of your flow, and then share the reasons to fix any problems that may occur.
And there are also a lot more updates for errors in the HTTP Connector in Mulesoft Composer.
The Error Handler component consists of 2 blocks.
1. Watch
The Watch block contains all possible component that may through error in flows.
2. On Error
The On error block only works if an component in the Watch block throws an error. Then you can handle all those errors in On Error block.
For example
领英推荐
There are some key best practices that we can take care while handling errors in Mulesoft composer.
Always trying to create errors in such a way that consist of accurate execution.
Put a generic error code at the end of all the different On Errors.
Add every possible component in the watch block that may throw errors.
Let's see with a use-case
In this use case, I will simply inserting the error logs in the same custom object for which the flow is triggered by record inserted or updated with the help of Error Handler (Beta).
Step 1.
Step 2.
Step 3.
Step 4.
Step 5.
Step 6.
Step 7.
Integration Engineer at NTT DATA Company ||3X Mulesoft Certified Developer ||MIA | MCD L1 | MCD L2 ||
1 年????
Looking for JOB CHANGE || Integration Engineer at NTT DATA || 3x Mulesoft Certified || MCD-01 || MCIA || MCD-02
1 年#cfbr