JBoss Community

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

created by Maciej Swiderski in jBPM - View the full discussion

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

Start a new discussion in jBPM at Community