[jboss-user] [jBPM] - How to properly use ContentMarshallerHelper for Human Task Output in JBPM5.3?

Thomas Setiabudi do-not-reply at jboss.com
Thu Nov 29 21:22:08 EST 2012

Thomas Setiabudi [https://community.jboss.org/people/thomas.setiabudi] created the discussion

"How to properly use ContentMarshallerHelper for Human Task Output in JBPM5.3?"

To view the discussion, visit: https://community.jboss.org/message/779236#779236


I have one output on my human task, the output is of type String, and I map this output to one of the process variable.
The problem is, the mapped value becomes:
MarshalledContentWrapper{content=[B at 342371e7, marshaller=org.drools.marshalling.impl.SerializablePlaceholderResolverStrategy, type=class java.lang.String}

how to make it resolve correctly to the String value?

here is my code

1. Map<String, Object> taskOutput = new HashMap<String, String>(1);
2.                         taskOutput.put("EvaluationResult",
3.                                         "good");
5.                         ContentData contentData = new ContentData();
6. contentData = ContentMarshallerHelper.marshal(taskOutput,
7.                                         new ContentMarshallerContext(), null);
9. taskClientHelper.completeTask(taskId.longValue(),
10.                                         userId, contentData);

Any help is appreciated.

Best Regards,
Thomas Setiabudi

Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121129/4125f3e9/attachment.html 

More information about the jboss-user mailing list