Hi! I'm new in jBPM5 and i have a problem with human tasks...
I need to know how to map between process variables and task parameters...
I get parameter mapping data with the next code:
BlockingGetContentResponseHandler getContentResponseHandler = new BlockingGetContentResponseHandler();
taskClient.getContent(contentId, getContentResponseHandler);
ByteArrayInputStream bis = new ByteArrayInputStream(getContentResponseHandler.getContent().getContent());
Object data = null;
try {
ObjectInputStream in = new ObjectInputStream(bis);
data = in.readObject();
System.out.println("====> User Task Data " + data);
in.close();
} catch (IOException e) {
System.out.println("Error: " + e.getMessage());
e.printStackTrace();
return;
} catch (ClassNotFoundException e) {
System.out.println("Error: " + e.getMessage());
e.printStackTrace();
return;
}
In this code, data is always String type... Is it possible to transfer complex data types? How can I do it?
How to get parameter values from parameter mapping and set result mapping?
Regards
Leandro