def addPad(input, size) { return org.mule.util.StringUtils.rightPad(input, size, "0"); } </global-functions> </expression-language> </configuration> Below is the dataweave code i tested with : %dw 1.0 %output application/json %var length = 10 %var invar = "abc" --- { f1: addP...
SQL String Functions and Operators FunctionReturn TypeDescriptionExampleResult string || string text String concatenation 'Post' || 'greSQL' PostgreSQL bit_length(string) integer Number of bits in string bit_length('jose') 32 char_length(string) or character_length(string) integer Number of ...
"somePayloadValue": true, "nullString": true, "notEmptyTextString": true, "notEmptyTextStringTwo": false } https://docs.mulesoft.com/mule-runtime/4.3/dw-core-functions-isblank Thanks, Manish Kumar Yadav MuleSoft Forum Moderator UpvoteReply Log In to An...
Maybe look at the splitby function https://docs.mulesoft.com/mule4-user-guide/v/4.1/dw-core-functions-splitby Not sure if this is the most elegant, but gets the job done: %dw 2.0 output application/json --- using (secondBit = (payload[1] splitBy "|") ) (payload[0] splitBy ...