I've primarily relied on custom modules and functions I've created for specific needs. However, I've also been utilizing a number of inbuilt functions provided by Mule in DataWeave, such as the upper function, which returns the provided string in uppercase characters, with the syntax upper(text: String): String.
how does Mule implement this? Or where could I find the source code of this function?
For see implementations of the DataWeave functions in Anypoint studio, use [CTRL] button and LMB click at the function name.
picture of Set Payload where to CTRL and LMB
For example, upper:
You can see
native("system::StringUpperFunctionValue"). The functionnativemeans that the implementation is in jar or class files. Specifically,system::StringUpperFunctionValueStringUpperFunctionValue.classis located in the maven package groupIdorg.mule.weaveartifactIdruntime.