Metadata on each document in folder
PostPosted:Wed Jun 24, 2020 1:10 pm
by ajanquart
Hello,
Is it possible to create metadata fields with fixed values in all the documents in a folder.
When creating a new document, we then can add predefined values as metadata.
Thanks in advance
Greetings
Lainkes
Re: Metadata on each document in folder
PostPosted:Fri Jun 26, 2020 2:09 pm
by jllort
Yes, might be done with automation action. But you should build your own automation action.
Here the documentation you should read:
https://docs.openkm.com/kcenter/view/ok ... ugins.html
https://docs.openkm.com/kcenter/view/ok ... ation.html
Take a look at how the built-in Automation actions are done in OpenKM, might inspire you
https://github.com/openkm/document-mana ... ion/action
Also, I suggest take a look at BaseDocumentModule.java ( where the automation is called ) to understand the pass of the vars across the env mapping
https://github.com/openkm/document-mana ... odule.java
You should use ( addGroup and setPropertiesSimple)
https://docs.openkm.com/kcenter/view/ok ... group.html
Finally, for it you should be interested in configuring the openkm personal development environment
https://www.openkm.com/en/download.html ( there's a video what explains how to install ). It comes as a VM with everything ready to be used