Hi,
I am having some trouble trying to make a custom task list.
For a given process instance, I want to display a list of the client events so far, showing their destinatary and the status of the activities. Optionally, it would also be nice to display the remaining activities of the process, although I understand that here some activities could be shown that could finally not be executed (due to activation rules). (I won't be having this problem since the process is just a list of secuential tasks)
The problem that I am having is that I am not being able to get hold of all the information that I need using de K2 API:
- K2Rom.Connection.OpenWorkList only displays not completed tasks for the logged user. Passing a WorkListCriteria isn't helping to get other users tasks or other status other than active.
- K2Rom.Connection.OpenProcessInstance() isn't giving any info about the instance activities.
- K2Manager.GetProcInstActivities doesnt give any info of the event destinations nor the activities status.
- Parsing K2Rom.Connection.ViewProcessInstance xml gives the status of the client events but not the destinatary that excecuted the task.
I am missing some method to obtain the info that I need? Is my only solution to go directly to the DB? In this case, which are the tables that I should look into? I took a brief look at them and I could see clearly wich are the tables needed, besides that I don't know which info is found in K2 and wich in K2Log.
Any help in this matter would be greatly appreciated.
Thank you,
Manuel