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

The specified initialization vector (IV) does not match the block size for this algorithm