JBoss Community

GetTasksOwned API is not returning the claimed tasks as Task.createdBy_Id column is not updated

created by S Jegan in jBPM - View the full discussion

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.

 

Regards.

Reply to this message by going to Community

Start a new discussion in jBPM at Community