Thomas Setiabudi [
https://community.jboss.org/people/thomas.setiabudi] created the
discussion
"Re: How to properly use ContentMarshallerHelper for Human Task Output in
JBPM5.3?"
To view the discussion, visit:
https://community.jboss.org/message/779750#779750
--------------------------------------------------------------
Hi,
I moved to jbpm5.4 and it solves the issue since the marshal(..) function only needs 2
arguments now:
I refer to this code
https://github.com/droolsjbpm/jbpm/blob/master/jbpm-examples/src/main/jav...
https://github.com/droolsjbpm/jbpm/blob/master/jbpm-examples/src/main/jav...
Map<String, Object> results = new HashMap<String, Object>();
results.put(comment, Agreed, existing laptop needs replacing);
results.put(outcome, Accept);
ContentData contentData = ContentMarshallerHelper.marshal(results, null);
taskClient.complete(task1.getId(), sales-rep, contentData);
For JBPM5.3 I am not sure if it can be solved by passing null to second marshal(..)
function variable. But maybe you can give that a try.
Regards,
Thomas Setiabudi
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/779750#779750]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]