JBoss Community

Re: JBPM5 Content data problem

created by S Root in jBPM - View the full discussion

Thanks for responding.

Process def attached to oringal post above.

My problem is even before I call taskClient.complete.

Its at the point where I retreive the Content and need to display data to the user. At that point content.getContent() I expect to return a byte array of type Map, but it is always String. It does have my Map key/value pairings and the values may themselves be another Map or even a List

 

This is how I get the Content:

 

 

 

 

 

public Content getContentForTask(Task task) {

long documentContentId = task.getTaskData().getDocumentContentId();

BlockingGetContentResponseHandler getContentResponseHandler =

new BlockingGetContentResponseHandler();

 

taskClient.getContent(documentContentId, getContentResponseHandler);

 

return getContentResponseHandler.getContent();

}

 



Reply to this message by going to Community

Start a new discussion in jBPM at Community