Assigning Workflow to a Folder
PostPosted:Thu Jan 22, 2015 7:15 pm
by DMT
Hi All,
I just wanted to ask if it's possible to assign workflow to a folder? Hence, in essence, when a user would upload a document to a folder, the Workflow would automatically start
Re: Assigning Workflow to a Folder
PostPosted:Sat Jan 24, 2015 10:01 am
by jllort
You must do it with automation task. First of all must register automation
http://wiki.openkm.com/index.php/Enable ... ersion_6.2
Then simply create an automation task like:
1-
Document creation event at
post
2- Validation ->
PathContains point to your folder
2- Action -> Here got one options -> AddWorkflowToWizard ( mandatori need your user upload workflow from UI ).
Also you could create your own action to execute workflow directly without wizard. Take a look here
https://sourceforge.net/p/openkm/code/H ... izard.java You should create your own class and execute directly here the workflow to the document ( take a look here for example how adding a keyword
https://sourceforge.net/p/openkm/code/H ... yword.java )
In professional version we got best implementation based on plugins, we've still not shared it on community version.