language used to query and transform complex data. It contains a lot of operators, including filters and functions. It supports various formats including XML, JSON, CSV, Java, and EDI out of the box. DataWeave code looks like JSON syntax and is format-neutral. It is very much possible to invoke Java/Groovy function within DataWeave.
how to invoke java function with your dataweave transformation. For example, if you have class with name TestClass.java which have function addTwoNumbers accept two argument and return the sum of two arguments.
unique name for your component in the application. • Name is the name of message processor used for logging purpose. • Object Ref is a bean-name and it is reference to object contains method to be invoked. • Method is a function that need to be invoked. • Method Arguments is the parameters that needs to be pass to function. Multiple arguments can be specify using comma separated. • Method Arguments Types is data type for argument. Multiple argument type can specify using comma separated. Use this property whenever you have multiple method with same name in same class. Now, you are aware how to invoke Java function within your dataweave transformation and Mule flow!