Skip to main content
Nintex Community Menu Bar

How to get infomation about the workflow instance that already finished?

  • June 2, 2008
  • 3 replies
  • 17 views

Forum|alt.badge.img+2

Now I can only find finished workflow instance in k2 workspace.


Is there any k2 API I can use to get all the infomation for development.


Instand of use reporting service or direct access to database.

3 replies

Forum|alt.badge.img+9
  • Nintex Partner
  • June 2, 2008

The Workspace reports use out of the box SmartObjects for their data.  These SmartObjects can be used in custom code also.  I have worked up a simple example here to show how it can be done: 


http://k2underground.com/blogs/fromthebench/default.aspx


HTH. 


 


Forum|alt.badge.img+2
  • Author
  • June 3, 2008

THX  Bob, it's very helpful.


Now i can get the process information I needed.


But  is this the only way?


Is there any K2 API I can use?


Forum|alt.badge.img+9
  • Nintex Partner
  • June 3, 2008

The SmartObject API is the only way this data can be surfaced.  The other commonly used K2 APIs, SourceCode.Workflow.Client and SourceCode.Workflow.Management, only deal with active process instances.