In this article, I will explain how to create a global function that can be access or reuse by other Transform Message Component within a Mule Application.
First, We need to create a Dataweave File (.dwl) and save it in src/main/resources/modules/. Now,we can define our global custom functions here by using the fun directive and global variable by using var directive. Also note thatthis dwl file should not contain an output directory, body expression, or the separator (—) between header and body sections.
Laisser un commentaire
Participez-vous à la discussion?N'hésitez pas à contribuer!