[jboss-user] [jBPM] - Re: How to properly use ContentMarshallerHelper for Human Task Output in JBPM5.3?
Thomas Setiabudi
do-not-reply at jboss.com
Fri Nov 30 05:24:34 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/779302#779302
--------------------------------------------------------------
I found this lines of code in AsyncWSHumanTaskHandler.java
public void execute(Content content) {
Object result = ContentMarshallerHelper.unmarshall( content.getContent(), env);
results.put("Result", result);
if (result instanceof Map) {
@SuppressWarnings("rawtypes")
Map<?, ?> map = (Map) result;
for (Map.Entry<?, ?> entry : map.entrySet()) {
if (entry.getKey() instanceof String) {
results.put((String) entry.getKey(), entry.getValue());
}
}
}
manager.completeWorkItem(task.getTaskData().getWorkItemId(), results);
}
If this is the code in jbpm console that listens to the task complete event, it means it uses ContentMarshallerHelper too..
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/779302#779302]
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/20121130/3dd5b87d/attachment.html
More information about the jboss-user
mailing list