[jboss-user] [jBPM] - Re: Is there anybody who know how to get a process variable's value when get a task by userid?
Thomas Setiabudi
do-not-reply at jboss.com
Wed Dec 5 12:26:26 EST 2012
Thomas Setiabudi [https://community.jboss.org/people/thomas.setiabudi] created the discussion
"Re: Is there anybody who know how to get a process variable's value when get a task by userid?"
To view the discussion, visit: https://community.jboss.org/message/780198#780198
--------------------------------------------------------------
Hi,
Isn't your code similar to this one https://github.com/droolsjbpm/jbpm/blob/master/jbpm-examples/src/main/java/org/jbpm/examples/humantask/HumanTaskExample.java https://github.com/droolsjbpm/jbpm/blob/master/jbpm-examples/src/main/java/org/jbpm/examples/humantask/HumanTaskExample.java
?
look at this section at that code:
Task task = taskClient.getTask(task4.getId());
Content content = taskClient.getContent(task.getTaskData().getDocumentContentId());
Object result = ContentMarshallerHelper.unmarshall(content.getContent(), null);
Maybe you can use
ContentMarshallerHelper.unmarshall(..) ?
Since you are using jBPM5.3, the
ContentMarshallerHelper.unmarshall(..) will take 3 parameters if I remember correctly, just try with null for second and third parameter.
Regards,
Thomas Setiabudi
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/780198#780198]
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/20121205/dc1e7d4c/attachment.html
More information about the jboss-user
mailing list