[jboss-user] [jBPM] - Re: GetTasksOwned API is not returning the claimed tasks as Task.createdBy_Id column is not updated
S Jegan
do-not-reply at jboss.com
Wed May 9 01:47:07 EDT 2012
S Jegan [https://community.jboss.org/people/jegan] created the discussion
"Re: GetTasksOwned API is not returning the claimed tasks as Task.createdBy_Id column is not updated"
To view the discussion, visit: https://community.jboss.org/message/734407#734407
--------------------------------------------------------------
Hi,
Thanks for replying.
Yes, this is an expected behavior as you have said. The real issue was Hibernate. I was using Hibernate 3.6.5, which generated a different query compared to the previous versions. After changing the TasksOwned query like below, it started working.
select
new org.jbpm.task.query.TaskSummary(
t.id,
t.taskData.processInstanceId,
name.text,
subject.text,
description.text,
t.taskData.status,
t.priority,
t.taskData.skipable,
t.taskData.actualOwner,
* createdBy,*
t.taskData.createdOn,
t.taskData.activationTime,
t.taskData.expirationTime,
t.taskData.processId,
t.taskData.processSessionId)
from
Task t
left join t.taskData.createdBy *as createdBy*...
Sorry for not updating this here.
Regards,
Jegan
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/734407#734407]
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/20120509/bc707d23/attachment.html
More information about the jboss-user
mailing list