• [solved] Search documents by workflow state

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #31184  by Catscratch
 
Hi,

I there a way to search for documents by a specific workflow state?

I need two ways:
- via Web Frontend (I thought maybe in Search->Advanced)
- via REST API (SDK4J)

My use case is, that I'm importing document into OpenKM via an external program using the SDK4J. And I have a workflow definied for this import use case. So I got different states. E.g. "Import Successful" (workflow complete), "Import Failed" (workflow not complete). And now I want to get all documents that are pending in state "Import Failed" to re-import them.

Thanks!
Last edited by Catscratch on Thu Feb 12, 2015 8:01 am, edited 1 time in total.
 #31211  by jllort
 
I suppose you're talking about metadata ? when I document fails you mark with property group or not ? this a good practice and correct way to solve it.
 #31243  by jllort
 
I do not know if it's possible, should investigate jbpm database for it, I've never done this. One solution could be store this information in metadata and each time you change state ( transition ) save it. Probably will be more easy than investigate JBPM tables

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.