Page 1 of 1

Receive notification and check-in with new document name

PostPosted:Thu Mar 16, 2017 3:50 pm
by maniachhz
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.

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

PostPosted:Fri Mar 17, 2017 9:58 am
by jllort
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(...);