How On Error Continue works in Mule 4?

What is On Error Continue in Mule 4?


Completes the flow and uses the result of the flow execution as the result of the main flow (the flow where On Error Continue is configured), as if the main flow completed the execution successfully. Any transaction the main flow handles is committed (treated as success). However, note that the transaction is not committed if another component (one that does not own On Error Propagate) created the transaction.


 

How On Error Continue works in Mule 4?


A simple scenario where On Error Continue in Mule 4 is explained. Assuming an error occurred while validating Is number in the main flow.






 

How it works:




Response: 


The status code is 200 OK as the transaction is committed successfully when On Error Continue is used.

Status code: 200 OK

Response message: Error Main Flow



 

Now imagine a scenario where On Error Propagate is used in place of On Error Continue in the Main flow

Find the latest MuleSoft(Mule 4) Articles on DataWeave, Anypoint Studio, Anypoint Platform, and Runtime Manager. Our articles also include frequently asked Mule 4 Interview questions and answers. Please comment below for any queries or free article submissions.

Post a Comment

0 Comments