mulesoft java invoke



To create a flow using java invoke. Please have a look at the flow below :-


As you can see, we need a java new component, then follow by a java invoke component.




Here is our java code :-

public class Greeter {

   public String Hello(String name) {
   return "Hello " + name;
   }
}

Java new component requires the following configuration :-




And the java invoke component. As you can see we reference our variable using #[vars.mygreeter] :-



Note the class and method configuration below is very important.





Comments

Popular posts from this blog

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type