[jboss-user] [jBPM] - GetTasksOwned API is not returning the claimed tasks as Task.createdBy_Id column is not updated

S Jegan do-not-reply at jboss.com
Tue Feb 14 08:59:19 EST 2012

S Jegan [https://community.jboss.org/people/jegan] created the discussion

"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/716523#716523

Hi All,

Request you all to please help me on this. I am using jbpm 5.2. I use getTasksOwned API to get the tasks assigned to an user. It works fine in all scenarios except for the tasks that are claimed.

What happens is, as part of the claim operation the "createdBy_id" column of Task is not getting updated. Because of this the query "TaskOwned" which is defined in TaskOrm.xml does not return the results. The "actualOwner_id" column is updated, but for some reason "createdBy_id" column is not.

I tried going through the code and found that in commands method of TaskServiceSession.class, only actual owner is set. Is this an issue? If I manually update this column in db, it works.

Is this an issue? If yes, is there any work-around for this? I am right now thinking of using the query API to get the tasks assigned. Will there be any other issue if I do that? 

Please provide your suggestions. Let me know if I need to provide any more information. Thanks for your time.


Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120214/68bf6714/attachment.html 

More information about the jboss-user mailing list