• disable/enable acces to users with workflow 6.2.0

  • 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.
 #19825  by Franck61
 
Hello,
we're looking to do a workflow on our documents in order to validate them before they can be used by others users. Is there a way to do this?
Example : 1. a user uploads a document in a folder and start the worflow (perhaps automatically?). No one except him and the users in the workflow can't access to the document.
2. the users in the workflow validate the document and then all the users authorized to access the folder can access to the document.
 #19843  by jllort
 
Yes there're two options for doing it. When workflow starts first task could be:

1- Remove write grants and when finished restore ( more complicated ).

2- Simply add lock to diocument and when finished workflow unlock document.
 #19921  by Franck61
 
Thanks for your answer, but how can we do this programmatically (i use jbpm 3 to do my workflow) ?
If we lock the document, could the users involve in the worklow, access to the document (read, edit, etc.).
 #19938  by jllort
 
You should read with paciente workflow guide http://wiki.openkm.com/index.php/Workflow_Guide and make some simple workflows in some development environment then you can working on real workflow.

In your case can be implemented as:
1- Get system token -> systemToken = DbSessionManager.getInstance().getSystemToken(); ( http://doxygen.openkm.com/6.2.x/d4/dab/ ... nager.html )
2- Change grants OKMAuth ( http://doxygen.openkm.com/6.2.x/d7/d54/ ... _auth.html )

Point to could same grants to database to recover later, but before talking about it I suggest you doing a workflow that make it. After it we can working on the rest.

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.