ParameterUtil.getSetter(targetClass, "suffix", String.class));
propertyDef.setOutput(new ParameterDef("value", Types.STRING),
ParameterUtil.getGetter(targetClass, "value", String.class));
//execute:
ObjectInvocationConfig config = new ObjectInvocationConfig(
targetClass, constructor, targetMethod,
constructorDef, targetMethodDef,
propertyDef
);
Map inputs = new HashMap();
inputs.put("message", "yo dude");
inputs.put("prefix", "lalala");
inputs.put("suffix", "xoxoxo");
Task task = config.createTask();
Map outputs = task.execute(inputs);
System.out.println(outputs.get("output"));
System.out.println(outputs.get("value"));
}