uuid of a document (workflow)

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).
Post Reply
jimac
Expert Boarder
Expert Boarder
Posts: 83
Joined: Thu Dec 01, 2016 4:01 am

uuid of a document (workflow)

Post by jimac » Thu Jan 05, 2017 9:27 am

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

jllort
Moderator
Moderator
Posts: 9379
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: uuid of a document (workflow)

Post by jllort » Fri Jan 06, 2017 11:58 am

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 )

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest