Skip to main content
Hi,

How can I get information about a completed workitem?.

I can get an active workitem from the serialnumber
oK2Connection.OpenWorklistItem(k2Serialnumber, "ASP")


when I finish this WorkItem, K2 go to the next activity but we want to review some details about the previous activity (Activity datafields).
when i try
oK2Connection.OpenWorklistItem(Previousk2Serialnumber, "ASP")

K2 returns me a "Worklist item not found"

We need to get these information by using the previous serial number.
If the user click on the previous email link, he must be redirected to a detail page instead of the form page.

any solutions?

thanks
The serial number ONLY exists while the Event Instance is 'Alive'. As soon as the event instance completes, the corresponding serial number is discarded and will NOT be used again.

You'll have to build a custom report (with queries against the K2Log database) to get to the 'Completed' process information.

Regards,
Ockert
thanks but how to create this custom report with K2ROM?
No, not with K2ROM. K2ROM only interacts with current Process, Activity, ActivityInstanceDestination and Event Instances.

Please refer to KB article: http://kb.k2workflow.com/articles/kb000021.aspx
for an example of custom reporting. It is a little bit difficult to get your head around custom reporting at first but start with your query against the K2Log database to retrieve the information you're looking for.

Cheers,
Ockert

Reply