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;
}
}
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