Page 1 of 1

Move file

PostPosted:Wed May 05, 2010 11:52 am
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

Re: Move file

PostPosted:Wed May 05, 2010 8:31 pm
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 )