title: Length Validation in Dataweave
body: <p>How to do length validation in Mule Dataweave</p>
  
  <pre><code>%dw 1.0
  %output application/xml
  ---
  (payload default []) map {
      Field1:$.Field11,
      Field2:$.Field22,
      Field3:$.Field33,
      Field4:$.Field44
  }
  </code></pre>
  
  <p>I want to do validation like <code>max Length of Field22 &lt; 20</code></p>
  
  <p>How to achieve this in Mule Dataweave</p>