Hi,
I have a requirement where I need to display the active workflow tasks from all the workflows (similar to Workspace Worklist Page). I used Workflow Management Server APIs and built this and I have added lot of custimizations as per business requirement and it works so fine. But we have many K2 BlackPealr workflows and so have thousands of active tasks in the system. suing APIs I have used paging to show only 20 items per page with custom pagination but still querying through APIs taking too much time.
So finally came up with a query where I can bring the complete information for WorkList columns, but except WorkListItem ID. Intially I thought K2server]..dbo].._Worklist] table will have a column called 'ID', but it doesn't have anything like that. So that is stopping me to go froward. When I debug the API code and capture Workflist Item ID and I found some number which didn't give me any clue to understand that it is formed with any combination of other IDs like ProcessInstanceID and ActiveDestination ID.
So If any one came accross this and have any solution to find out workflist Item ID from table. Please help me.
Here is the Query I am using to make a custom worklist from a query (Need worklist Item ID in the select columns list).
SELECT PIn.ID ProcInstID,PS.Name AS ProcessName, PIn.Folio, AC.Name ActivityName,WL.Destination,WL.Status, PIn.Status WfStatus
FROM /K2ServerLog].
WHERE AI.ProcInstID = PIn.ID AND AD.ProcInstID = PIn.ID AND
WL.Status in (0,1,2)
P.S: I know that we are not supposed to create/alter any objects on K2 Databases, so creating this query/view on my custom database with in the Same SQL Server Instance.
Thanks in advance!
Thanks
Srinivas Vangala