I am trying to invoke a java function in mule.I converted the payload into the Object and passed it in the function.
The name of the Java object created is req.
The method validate accepts a Java Object Of type Example
public HashMap validate(Example req) {.......}
Example class looks like this:
Class Example{
String key1;
String key2;
String key3;
}
XML configuration looks like this :
I get the following error:
I don't know why is it not passing the java object as a whole.
解决方案
Please try with this and see. If it works for you please let me know. We need to improve the mule documentation in this case
#[{req: vars.req}]