Below is my attempt to learn and apply functional programming using json mapping as example. Will see how far I can go and accomplish when using functional programming, compare to procedural programming that I familiar with. Transform Flat Json to
Import External Jars File and Run Groovy Script in Mule 4
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,
Groovy Scripted Mapping using StreamingMarkupBuilder
Recent project required to use groovy scripted mapping, using StreamingMarkupBuilder to produce output XML, then post to Odata services.Below is the skeleton content in groovy script. With this script, can act as alternative to graphical mapping, and use groovy/java 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