DataWeave language is the primary expression language in Mule 4, and is encourage to use DataWeave whenever possible. However for practicality or for whatever reason, there is always some scenario that one wish to use other general purpose programming language,
Debug/Logging Headers, Properties, Payload Body using Groovy Scripts
This post show Groovy scripting to read and log all header, properties in message log, and payload body as attachment, then can be viewed in Monitoring Message Processing Log, for troubleshooting and debug purpose.Reuse previous iFlow, the completed iFlow is