[jboss-user] [jBPM] - Re: How to properly use ContentMarshallerHelper for Human Task Output in JBPM5.3?
Thomas Setiabudi
do-not-reply at jboss.com
Mon Dec 3 20:03:25 EST 2012
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/java/org/jbpm/examples/humantask/HumanTaskExample.java https://github.com/droolsjbpm/jbpm/blob/master/jbpm-examples/src/main/java/org/jbpm/examples/humantask/HumanTaskExample.java
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&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121203/cc96c332/attachment-0001.html
More information about the jboss-user
mailing list