Accessing Completed Process Instances


Badge +1
I am trying to access a completed process instance through the K2ROM. I have tried the k2Conn.OpenProcessInstance(sn) method but it does not work once the process has completed. Instead it give this error message Process instance not found. I am guess the reason why is the process has been removed from the transaction database and is only located in the K2Log Database. Which is probably why the method fails. If this is the case does anyone have code to retrieve the processinstance from the k2Log Database. I am sure Dirk or Deon could write this in their sleep :wink: so hopefully someone can surprise me with a solid solution.

Ben Elliott

3 replies

Badge +8
consider using the K2 reporting web service rather than the K2ROM. This is the same service that provides information to the K2 workspace reports.
Badge +1
Hello,
Is there any documentation or links on how to use the reporting web service?

Thanks.
Badge +9
Hi Ahmy,

Please have a look at the following KB Article: http://kb.k2workflow.com/Articles/KB000021.aspx

Reply