• uuid of a document (workflow)

  • Nous essayons de faire OpenKM aussi intuitif que possible, mais tout avis est bienvenu.
Nous essayons de faire OpenKM aussi intuitif que possible, mais tout avis est bienvenu.

Moderator: dedisoft

Forum rules: Avant de poser une question, merci de regarder la documentation du wiki ou d'utiliser la fonction recherche du forum. Et rappelez vous que nous n'avons ni boule de cristal ni possibilité de lire dans les pensées, aussi pensez à spécifier quelle version d'OpenKM vous utilisez ainsi que la version du navigateur web et du système d'exploitation. Pour de plus amples informations lisez Comment reporter un bug efficacement (anglais).
 #42937  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
 #42951  by jllort
 
Here you have the api documentation https://docs.openkm.com/apidoc/

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 )

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.