Gary, if you use the default work item :
org.jbpm.bpmn2.handler.ServiceTaskHandler
I think the parameter has to be called "Parameter".
And then it is invoked:
...
Object parameter = workItem.getParameter("Parameter");
try {
Class<?> c = Class.forName(i);
Object instance = c.newInstance();
Class<?>[] classes = null;
Object[] params = null;
if (parameterType != null) {
classes = new Class<?>[] {
Class.forName(parameterType)
};
params = new Object[] {
parameter
};
}
Method method = c.getMethod(operation, classes);
Object result = method.invoke(instance, params);
Demian