Choice Router in Mule 4
Nandinee Ramanathan
1 min read
What is choice router?
Choice router is used to route the flow based on the dataweave expression.
It is used to route only to one flow.
If no match is found it will route to default flow.
Example:
Create a new mule project and select choice router from mule palatte.
Here we are taking the SetVariable from Mule Palette and setting the queryParams as value.
Add Choice Router giving the condition value is over 90 with payload as "Value greater than 90", if value is over 70 with payload as "Value greater than 70" and by default with payload "No Matching value"
Test the endpoint through postman
0
Subscribe to my newsletter
Read articles from Nandinee Ramanathan directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by