Related questions
How to ignore empty objects in DataWeave Mule esb
I am working on transforming my payload. I have got the situation here.
Input payload looks like this below one:-
{
"address": {
"city": "bab",
"company_name": "asdast",
"country_code": "sam",
"location": {
"city": null,
"state": null
}
}}
I used %output application/json …
How to Check null condition in Data weaver : Mule
Here is my xml, in that first I need to check 'RecordsEntries' should not be 'null', then RecordEntry shouldn't be null followed by mapping code
<?xml version="1.0" encoding="UTF-8"?>
<Records>
<storenumber />
<calculated>…
Length Validation in Dataweave
How to do length validation in Mule Dataweave
%dw 1.0
%output application/xml
---
(payload default []) map {
Field1:$.Field11,
Field2:$.Field22,
Field3:$.Field33,
Field4:$.Field44
}
I want to do validation like max Length of Field22 < 20
How to achieve this in …