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
-
Archives
- October 2023 (1)
- October 2022 (2)
- October 2021 (2)
- February 2021 (5)
- January 2021 (4)
- December 2020 (3)
- October 2020 (2)
- August 2020 (1)
- June 2020 (1)
- April 2020 (1)
- February 2020 (1)
- December 2019 (7)
-
Categories
-
RSS
Entries RSS
Comments RSS