[jboss-user] [jBPM] - Re: Failing to get task content on jBPM 5.4.0-SNAPSHOT

Maciej Swiderski do-not-reply at jboss.com
Thu Sep 6 03:06:54 EDT 2012


Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: Failing to get task content on jBPM 5.4.0-SNAPSHOT"

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

--------------------------------------------------------------
To get the content out of the task you should use:


long contentId = task.getTaskData().getDocumentContentId();
        if (contentId != -1) {
               BlockingGetContentResponseHandler responseHandler = new BlockingGetContentResponseHandler();
               client.getContent(contentId, responseHandler);
               Content content = responseHandler.getContent();
               input = ContentMarshallerHelper.unmarshall(content.getContent(), null);
        }



HTH
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/758203#758203]

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/20120906/c50e4efa/attachment.html 


More information about the jboss-user mailing list