Skip to main content

Suppose a simple process called "Sample" has been created with the 2 process data fields namely "ID" and "Status".


How can we check for the existence of a "ID" (eg) of value 5 for all the process instances of the "Sample" workflow.


 


Do we have to hit the K2 database or does K2 provide an object model to read all the process instances data in K2.


 


kindly help.

K2.net provides a reporting webservice called FilterService that may be able to help you out for this.  KB 21 (http://kb.k2workflow.com/articles/kb000021.aspx) provides some insight into this service. If this doesn't work out for you then you can hit the K2Log database.


If you have a high volume process with lots of data fields and your query needs to return a large number of these in columns then you may consider having the K2 process store the business data in a table outside of K2 (i.e. put steps in the process to save the process data fields to an external DB).  This will allow for more flexible business data reporting.


HTH.


Reply