Page 1 of 1

uuid of a document (workflow)

Posted: Thu Jan 05, 2017 9:27 am
by jimac
Good Day! :)

What is the code to use when you want to know if there is a file existing in a specific folder., for example a folder named "test"
after knowing that, if there exist a file, that file will be moved to another folder.
also can the else statement contain nothing?

what is the code to know the uuid of the file that is uploaded in folder named test.

Give me a reference for this kind of action.

Thank you. :D :D

Re: uuid of a document (workflow)

Posted: Fri Jan 06, 2017 11:58 am
by jllort
Here you have the api documentation

You should be interested in classes under the package com.openkm.api
I suggest check these classes:
OKMRepository ( convert path to uuid, uuid to path, check is a node exist )
OKMDocument ( to retrieve all the documents from a folder -> getChildren method )