Receive notification and check-in with new document name

We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
Post Reply
maniachhz
Fresh Boarder
Fresh Boarder
Posts: 13
Joined: Wed Mar 08, 2017 4:30 pm

Receive notification and check-in with new document name

Post by maniachhz » Thu Mar 16, 2017 3:50 pm

Hi,

In the 6.3 community, I want the following features

1. Just receive CREATE_DOCUMENT notification (not include CHECK-IN notification and so on)
2. I set system.document.name.mismatch.check = false. When the document is updated, the document name in file browser is not changed ( is old ), I want to set the name to new document name instead of the old when finishing check-in.

Please guide about how to setup or guide about the classes i should modify.

Thanks.

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

Re: Receive notification and check-in with new document name

Post by jllort » Fri Mar 17, 2017 9:58 am

Should not be on create document event should be in document update. However you action should be executed in pre stage ( not in post ), anyway following the actual code in the checkin method is not set the doc name you are uploading we only have the binary data, that's why I think from automation view can not be done. I think you should modify the class FileUploader.java for it ( simply in case document name has been changed you should do a call OKMDocument.getInstance().rename(...);

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests