• Move file

  • 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.
 #4872  by Dracmore
 
Hi,
I'm making a workflow that when a user insert a file in a folder "withoutValidate" and run the workflow then the user accept or not accept this file and if he accept is going to move to folder "validated" and if instead not accept it's going to "NotValidated." Workflow It's done except for the issue of moving the file to other folder, now I have everything done with xml, no class, actions or anything and so I ask your help because I don't know if I can do with a tag in the xml ( something like path) or need a action, i need help xD.

Thanks.

P.D: my english is really bad sorry xD
 #4879  by jllort
 
You must use DirectDocumentModule class ( you need create in your logic a class that uses some OpenKM classes ). In this class there's the move method that you're looking for. ( I recomend donwloading source code to be familiarized with Core API )

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.