Ravindar, Integrations with Mulesoft & BizTalk

Just another Integration blog

Some Munit Learnings

 

1. setting uri param in “SetEvent” shape. In the “Attributes” tab, along with the other attributes, add “uriParams” and declare the uri params values like below

#[{
name: "ravi",
gender: "male",
uriParams: { applicationNum: "2121"}
}]




2. uriParams Also, pass all the values with mime type as application/java (although you used application/json in your actual flow)

3. Many times, the values you set will not be reflecting. For example you set a variable, but the value will come as null. Or you may get following error

for example, you have declared a variable with value 2121, however, still the variable value comes null during execution.

Or you may get below error 

Element '<your value here>' is not defined in the Mule Registry




For such cases, to make it work, go to the configuration xml and change the text value=”2121″ to value=”#[‘2121’] .

So where ever you get null values or error, change like this. 

4. Make sure in your values no special character “$” exists

December 23, 2020 Posted by | Mulesoft, Munit | Leave a comment